<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>te-nu</author_name>
  <author_url>https://blog.hatena.ne.jp/te-nu/</author_url>
  <blog_title>ウェブエンジニア珍道中</blog_title>
  <blog_url>https://www.te-nu.com/</blog_url>
  <categories>
    <anon>デザインパターン</anon>
    <anon>typescript</anon>
  </categories>
  <description>www.te-nu.com の続きです、まだお読みで無い方はぜひ読んでみて下さい（ダイレクトマーケティング） 前回はAdapterパターンを継承で書いてみましたが、委譲による実装方法もあるので作ってみたいと思います。 継承との主な違い 継承では既存のクラス、今回で言うBannerクラスを継承することで実現していました。 委譲では既存のクラスのインスタンスを作って作業をぶん投げる（委譲）ことで実現しています。 委譲はちょっと馴染みの無い言葉ですが要は作業をぶん投げることです（誤解があったらごめんなさい） ざっくりまとめると 継承を使ったパターン 既存のクラスを継承して、親クラスとなった既存のクラ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.te-nu.com%2Fentry%2F2017%2F11%2F07%2F190000&quot; title=&quot;typescriptでデザインパターンを書く -Adapter(委譲)- - ウェブエンジニア珍道中&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>2017-11-07 19:00:00</published>
  <title>typescriptでデザインパターンを書く -Adapter(委譲)-</title>
  <type>rich</type>
  <url>https://www.te-nu.com/entry/2017/11/07/190000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
