{"image_url":null,"description":"Factory Method\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u3046\u3068\uff0c\u5b9f\u969b\u306b\u4f5c\u6210\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7a2e\u985e\u3084\u4f5c\u6210\u624b\u9806\u3092\u96a0\u853d\u3067\u304d\u307e\u3059\uff0e \u305f\u3068\u3048\u3070\u6b21\u306e\u4f8b\u3060\u3068\uff0cCounter\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u751f\u6210\u3055\u308c\u308b\u306e\u304b\uff0c\u305d\u308c\u3068\u3082CounterWithRealNumber\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u751f\u6210\u3055\u308c\u308b\u306e\u304b\u3092\uff0c\u305d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5229\u7528\u3059\u308b\u5074\u3067\u306f\u6c17\u306b\u3057\u306a\u304f\u3066\u3082\u3088\u3044\uff0e #!/usr/bin/python class Counter(object): def __init__(self): self.count = 0; def increment(self): self.count += 1; def getValue(self): return self.\u2026","type":"rich","url":"https://chiko.hatenadiary.org/entry/20070808/p3","version":"1.0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchiko.hatenadiary.org%2Fentry%2F20070808%2Fp3\" title=\" Python\u3067Factory Method\u30d1\u30bf\u30fc\u30f3 - chiko\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://chiko.hatenadiary.org/","published":"2007-08-08 00:00:03","width":"100%","provider_url":"https://hatena.blog","author_name":"chiko","height":"190","title":" Python\u3067Factory Method\u30d1\u30bf\u30fc\u30f3","author_url":"https://blog.hatena.ne.jp/chiko/","categories":[],"blog_title":"chiko\u306e\u65e5\u8a18"}