<?php class Foo { public static function test() { return new A; } } class Bar extends Foo { public static function test() { return new B; } } var_dump(Bar::test()); var_dump(Foo::test());
You have javascript disabled. You will not be able to edit any code.