<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>succeed</author_name>
  <author_url>https://blog.hatena.ne.jp/succeed/</author_url>
  <blog_title>飲み物だから太らない</blog_title>
  <blog_url>https://succeed.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>同名のメソッドを作る理由は、わかりやすさというわけではない。もちろんわかりにくい名前を付けてもいいというわけじゃないけれども、それだけが理由じゃない。 メソッド名というのは抽象化の産物であるわけだ。 Animal animals[] = new Animal[3]; animals[0] = new Dog(); animals[1] = new Cat(); animals[2] = new Bird(); for(int i = 0; i ということが出来ないと困るよね、ということである。つまりはインターフェースの存在意義もそこにある。 animals[i].move(); のところでは、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsucceed.hatenadiary.org%2Fentry%2F20050115%2Fp3&quot; title=&quot;そもそも、なぜ同名のメソッドを作るのか - 飲み物だから太らない&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>2005-01-15 00:00:02</published>
  <title>そもそも、なぜ同名のメソッドを作るのか</title>
  <type>rich</type>
  <url>https://succeed.hatenadiary.org/entry/20050115/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
