{"author_url":"https://blog.hatena.ne.jp/Naotsugu/","version":"1.0","width":"100%","author_name":"Naotsugu","height":"190","blog_url":"https://blog1.mammb.com/","title":"Scala 2.8 \u3067\u306f\u30c8\u30ec\u30a4\u30c8\u306e val \u304c\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u53ef\u80fd\u306b\u306a\u3063\u305f","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","description":"\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c8\u30ec\u30a4\u30c8\u306e val \u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u305f\u5834\u5408 trait Tr1 { val hoge = \"Trait1\" } class Sample extends Tr1 { override val hoge = \"Sample\" } val s = new Sample() print(s.hoge) Scala 2.7 \u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u3068\u306a\u308a\u6b63\u3057\u304f\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002 Trait1 Scala 2.8 \u3067\u306f Sample\u3068\u671b\u3080\u7d50\u679c\u3068\u306a\u308a\u307e\u3059\u3002\u305d\u308c\u3060\u3051\u3067\u3059\u3002","image_url":null,"categories":["Scala"],"published":"2011-04-05 00:01:55","blog_title":"A Memorandum","url":"https://blog1.mammb.com/entry/20110405/1302015715","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20110405%2F1302015715\" title=\"Scala 2.8 \u3067\u306f\u30c8\u30ec\u30a4\u30c8\u306e val \u304c\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u53ef\u80fd\u306b\u306a\u3063\u305f - A Memorandum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}