<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>totemn</author_name>
  <author_url>https://blog.hatena.ne.jp/totemn/</author_url>
  <blog_title>totemnの日記</blog_title>
  <blog_url>https://totemn.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>オーバーライドが成立する条件はメソッド名の同値性だけ。 たとえば以下の例 class Animal def speak &quot;hello&quot; end endclass Dog def speak(word) &quot;hello &quot; + word end enddog = Dog.newputs dog.speak =&gt; 14:in 'speak': wrong number of arguments (0 for 1) (ArgumentError) Animalクラスのspeakは引数付きのspeak(word)にオーバーライドされたため、引数無しのspeakメソッドは存在しないのでエラーになる。 Ja…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftotemn.hatenadiary.org%2Fentry%2F20090220%2F1235134262&quot; title=&quot; オーバーライドとオーバーロード - totemnの日記&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>2009-02-20 21:51:02</published>
  <title> オーバーライドとオーバーロード</title>
  <type>rich</type>
  <url>https://totemn.hatenadiary.org/entry/20090220/1235134262</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
