<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gom68</author_name>
  <author_url>https://blog.hatena.ne.jp/gom68/</author_url>
  <blog_title>gom68の日記</blog_title>
  <blog_url>https://gom.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>ruby</anon>
  </categories>
  <description>Java だと確か、アクセス制限を弱める方向でオーバーライドできた覚えがある。 PHP と Ruby で同じことを試す機会があったのでメモ。 PHP の場合 Error になる。public なメソッドは public でないといけないらしい。 Java と似た方式。 &lt;?php class AbsTest { public function foo() { echo &quot;foo&quot;; } } class Test extends AbsTest { private function foo() { echo &quot;foo!&quot;; } public function bar() { self::foo(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgom.hatenablog.com%2Fentry%2F20090307%2F1236399947&quot; title=&quot; public なメソッドを private でオーバーライドした場合 - gom68の日記&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-03-07 13:25:47</published>
  <title> public なメソッドを private でオーバーライドした場合</title>
  <type>rich</type>
  <url>https://gom.hatenablog.com/entry/20090307/1236399947</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
