{"description":"\u5165\u308c\u7269\u3068\u4e2d\u8eab\u3092\u540c\u4e00\u8996\u3059\u308b\u30d1\u30bf\u30fc\u30f3\uff0e import std.stdio; interface Element { uint countChilds(); void append(Element c); } class Folder : Element { private Element[] elems; override uint countChilds() { uint sum; foreach (c; elems) { sum += 1 + c.countChilds(); } return sum; } override void append(Element c) { elems ~= \u2026","width":"100%","blog_title":"...ing logging 4.0","url":"https://haru-s.hatenablog.com/entry/20101103/1288776608","author_url":"https://blog.hatena.ne.jp/haru-s/","height":"190","image_url":null,"provider_name":"Hatena Blog","published":"2010-11-03 18:30:08","author_name":"haru-s","categories":["D\u8a00\u8a9e"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20101103%2F1288776608\" title=\"Composite pattern - ...ing logging 4.0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","type":"rich","version":"1.0","title":"Composite pattern","blog_url":"https://haru-s.hatenablog.com/"}