2013-02-06から1日間の記事一覧
さて、問題です。以下のコードの実行結果はどうなるでしょう? foo(); } } class B extends A { public function foo() { echo "B foo()\n"; } } $b = new B(); $b->bar(); 答え。以下のようになります。エラーにはなりません。 class B, A …
さて、問題です。以下のコードの実行結果はどうなるでしょう? foo(); } } class B extends A { public function foo() { echo "B foo()\n"; } } $b = new B(); $b->bar(); 答え。以下のようになります。エラーにはなりません。 class B, A …