<?php abstract class A { public function foo() { // $this refers to $b/B regardless of the fact that the code is in A::foo $this->bar(); } public function bar() { echo "A's bar"; } } class B extends A { public function foo() { parent::foo(); } public function bar() { echo "B's bar"; } } $b = new B(); $b->foo();
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`