<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akira2kun</author_name>
  <author_url>https://blog.hatena.ne.jp/akira2kun/</author_url>
  <blog_title>技術とか戦略とか</blog_title>
  <blog_url>https://akira2kun.hatenablog.com/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>リスコフの置換原則とはオブジェクト指向の設計の原則の一つであり、「基本クラスをサブクラスに入れ替えても問題なく動かなけらばならない」という原則です。もしサブクラスに入れ替えると正しく動かなくなるのであれば、クラスを利用する側はサブクラスを使用してはならないというのを意識しながらコーディングしなければならず、保守性が低下します。 クラスの入力・出力に目を向けると、以下の条件を満たすとリスコフの置換原則を満たすことができます。１．サブクラスの入力のパターンは、基本クラスの入力のパターンよりも緩い２．サブクラスの出力のパターンは、基本クラスの入力のパターンよりも厳しい もし、サブクラスの入力のパター…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakira2kun.hatenablog.com%2Fentry%2F2020%2F05%2F21%2F231928&quot; title=&quot;リスコフの置換原則とは - 技術とか戦略とか&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-21 23:19:28</published>
  <title>リスコフの置換原則とは</title>
  <type>rich</type>
  <url>https://akira2kun.hatenablog.com/entry/2020/05/21/231928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
