<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>XaroCydeykn</author_name>
  <author_url>https://blog.hatena.ne.jp/XaroCydeykn/</author_url>
  <blog_title>何かを書き留める何か</blog_title>
  <blog_url>https://xaro.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Design Pattern</anon>
  </categories>
  <description>【前回までの粗筋】 OJT（お前が 自分で トレーニング）今回はAdapterパターンである。つまりはWrapperである。GoFによると、2つのインタフェース間の非互換性を解消するためのパターンである。 これはわかりやすい。Adapterパターンにはクラスの継承によるものと、インスタンスの委譲によるものの2種類ある。以下のコードは前者に基づいている（つもり）。 '''Adapter あるクラスのインタフェースを、 クライアントが求めるほかのインターフェースへ変換する。 インタフェースに互換性の無いクラス同士を 組み合わせることが出来るようにする。 ''' import abc class B…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxaro.hatenablog.jp%2Fentry%2F2014%2F09%2F26%2F215603&quot; title=&quot; Pythonで頑張る『Java言語で学ぶデザインパターン入門』【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>2014-09-26 21:56:03</published>
  <title> Pythonで頑張る『Java言語で学ぶデザインパターン入門』【Adapterパターン】</title>
  <type>rich</type>
  <url>https://xaro.hatenablog.jp/entry/2014/09/26/215603</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
