<?php abstract class Test { public static function getInstance() { return new self; } } class Test2 extends Test { } $test = Test2::getInstance(); var_dump($test);
You have javascript disabled. You will not be able to edit any code.