<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chiko</author_name>
  <author_url>https://blog.hatena.ne.jp/chiko/</author_url>
  <blog_title>chikoの日記</blog_title>
  <blog_url>https://chiko.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>Factory Methodパターンを使うと，実際に作成するオブジェクトの種類や作成手順を隠蔽できます． たとえば次の例だと，Counterオブジェクトが生成されるのか，それともCounterWithRealNumberオブジェクトが生成されるのかを，そのオブジェクトを利用する側では気にしなくてもよい． #!/usr/bin/python class Counter(object): def __init__(self): self.count = 0; def increment(self): self.count += 1; def getValue(self): return self.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchiko.hatenadiary.org%2Fentry%2F20070808%2Fp3&quot; title=&quot; PythonでFactory Methodパターン - chikoの日記&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-08-08 00:00:03</published>
  <title> PythonでFactory Methodパターン</title>
  <type>rich</type>
  <url>https://chiko.hatenadiary.org/entry/20070808/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
