{"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20051107%2F1131315531\" title=\"NonVirtual Interface \u30d1\u30bf\u30fc\u30f3 - \u9591\u53e4\u9ce5\" 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://www.little-cuckoo.jp/entry/20051107/1131315531","author_url":"https://blog.hatena.ne.jp/wata_d/","categories":["C++","\u8a2d\u8a08"],"author_name":"wata_d","provider_name":"Hatena Blog","version":"1.0","blog_url":"https://www.little-cuckoo.jp/","type":"rich","title":"NonVirtual Interface \u30d1\u30bf\u30fc\u30f3","blog_title":"\u9591\u53e4\u9ce5","image_url":null,"published":"2005-11-07 07:18:51","provider_url":"https://hatena.blog","description":"\u8272\u3005\u306a\u56f3\u5f62\u3092\u63cf\u753b\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u56f3\u5f62\u3092\u63cf\u753b\u3059\u308b\u51e6\u7406\u3092\u3001\u307e\u305a\u62bd\u8c61\u30af\u30e9\u30b9 Shape \u3092\u7528\u610f\u3057\u3001\u305d\u308c\u304b\u3089\u5b9f\u969b\u306e\u63cf\u753b\u51e6\u7406\u3092\u6d3e\u751f\u30af\u30e9\u30b9\u3067\u5b9f\u88c5\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3068\u304d\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5b9f\u88c5\u3092\u884c\u3044\u307e\u3057\u305f\u3002 class Shape { public: Shape() {} virtual Shape() {} //! \u63cf\u753b\u51e6\u7406 virtual void Draw() = 0; }; class Rectangle : public Shape { public: virtual void Draw() { // ... \u77e9\u5f62\u3092\u63cf\u753b\u3059\u308b ... } };\u307e\u305a\u77e9\u5f62\u3092\u63cf\u753b\u3059\u308b Rectang\u2026","width":"100%"}