{"version":"1.0","height":"190","width":"100%","type":"rich","author_name":"tt_clown","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fclown.cube-soft.jp%2Fentry%2F20090618%2Fp1\" title=\" Factory - Cube Lilac\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://clown.cube-soft.jp/entry/20090618/p1","categories":["Development","C++"],"title":" Factory","published":"2009-06-18 00:00:00","image_url":null,"author_url":"https://blog.hatena.ne.jp/tt_clown/","blog_url":"https://clown.cube-soft.jp/","blog_title":"Cube Lilac","description":"\u30e1\u30e2\uff0e\u4eca\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d9\u30fc\u30b9\u3068\u306a\u308b\u30af\u30e9\u30b9 shape \u3068 shape \u3092\u7d99\u627f\u3057\u305f\u69d8\u3005\u306a\u30af\u30e9\u30b9\u304c\u3042\u308a\u307e\u3059\uff0e\u3053\u306e\u3068\u304d\uff0c\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u6e21\u3055\u308c\u308b\u540d\u524d\u3092\u5143\u306b\u3057\u3066\u751f\u6210\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5909\u3048\u305f\u3044\u5834\u5408\uff0c\u3069\u3046\u66f8\u304f\u306e\u304c\u30d9\u30b9\u30c8\u306a\u306e\u304b\u306a\u30fb\u30fb\u30fb class shape; class triangle : public shape; class rectangle : public shape; class pentagon : public shape; class circle : public shape; ... \u4eca\u306e\u3068\u3053\u308d\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306a makeshape \u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\uff0e template <class\u2026"}