<?php class A { function call() { self::method1(); } function method1() { $this->method2(); } function method2() { echo 'Base definition'; } } class B extends A { function method2() { echo 'Override'; } } (new B)->call();
You have javascript disabled. You will not be able to edit any code.