<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>boscono</author_name>
  <author_url>https://blog.hatena.ne.jp/boscono/</author_url>
  <blog_title>てきとうなメモ</blog_title>
  <blog_url>https://boscono.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Refactoring</anon>
  </categories>
  <description>Replace Inheritance with Delegation 継承を委譲に．本の例とは関係ないけどState/Strategyパターンは継承と委譲をバランスよく使っている気がする．あと，refactoring.comの例がちょっと難しい．StackはVectorかと言われるとそうとは限らないので委譲の方がきれいだけど，継承した方がVectorの機能を一通り実装してくれるのでうれしい．実際java.util.Stackはjava.util.Vectorを継承しているし．</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboscono.hatenablog.com%2Fentry%2F20070304%2Fp1&quot; title=&quot; リファクタリング入門 第13章 - てきとうなメモ&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-03-04 00:00:00</published>
  <title> リファクタリング入門 第13章</title>
  <type>rich</type>
  <url>https://boscono.hatenablog.com/entry/20070304/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
