<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shikaku</author_name>
  <author_url>https://blog.hatena.ne.jp/shikaku/</author_url>
  <blog_title>shikaku's blog</blog_title>
  <blog_url>https://blog.systemjp.net/</blog_url>
  <categories>
    <anon>CPP</anon>
  </categories>
  <description>コンポジションとは、親クラスを継承しないでprivateメンバに取り込んでしまうこと。 継承と違って別物になるので、親の変更の影響を受けなくなる。 親のヘッダファイルを必ずしもincludeしなくてもよくなるので、コンパイルするファイル間の依存性が下がる。 継承のメリットが薄くなる。 わざわざ別にインスタンスを生成しなければならない 必要なメソッドはいちいち取り込まなければならない</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F20081215%2Fp1&quot; title=&quot;継承とコンポジション - shikaku&amp;#39;s blog&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>2008-12-15 00:00:00</published>
  <title>継承とコンポジション</title>
  <type>rich</type>
  <url>https://blog.systemjp.net/entry/20081215/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
