<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haru-s</author_name>
  <author_url>https://blog.hatena.ne.jp/haru-s/</author_url>
  <blog_title>...ing logging 4.0</blog_title>
  <blog_url>https://haru-s.hatenablog.com/</blog_url>
  <categories>
    <anon>D言語</anon>
  </categories>
  <description>集中連載「クラス間依存関係の除去」を書いていて思ったこと． 共変の戻り値型をサポートしているD言語では，次のように； class A {} class B : A {} class Foo { A hoge() { return new A; } } class Bar : Foo { B hoge() { return new B; } // override with covariant return type } 戻り値型が異なる Bar.hoge() で Foo.hoge() をオーバーライドすることが許されています． 「それなら」と思い，次のコードを試してみました． import s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20070628%2F1183013586&quot; title=&quot; 共変の戻り値型 (Covariant Return Type) の拡張 - ...ing logging 4.0&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-06-28 15:53:06</published>
  <title> 共変の戻り値型 (Covariant Return Type) の拡張</title>
  <type>rich</type>
  <url>https://haru-s.hatenablog.com/entry/20070628/1183013586</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
