<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haru-s</author_name>
  <author_url>https://blog.hatena.ne.jp/haru-s/</author_url>
  <blog_title>...ing logging 4.0</blog_title>
  <blog_url>https://haru-s.hatenablog.com/</blog_url>
  <categories>
    <anon>D言語</anon>
  </categories>
  <description>前回は，クラステンプレート AnimalTemplate を導入することで，IAnimal インタフェースと Dog/Cat クラスの継承関係を断ちました． 今回は，利用側である main.d ファイルと具象クラス Dog/Cat の依存関係を断つために，シンプルなファクトリクラスを導入します． main.d ファイルが Dog/Cat クラスに依存しているのは，（ AnimalTemplate を介して） Dog/Cat クラスのコンストラクタを呼び出しているからです． そのせいで，せっかく IAnimal インタフェースを介した抽象化をしているのに，具象クラスに依存してしまっています． ま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20070626%2F1182859525&quot; title=&quot; クラス間依存関係の除去　第3回 - ファクトリクラスの導入によるインスタンス生成処理の分離 - ...ing logging 4.0&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>2007-06-26 21:05:25</published>
  <title> クラス間依存関係の除去　第3回 - ファクトリクラスの導入によるインスタンス生成処理の分離</title>
  <type>rich</type>
  <url>https://haru-s.hatenablog.com/entry/20070626/1182859525</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
