<?php class super { public function a() { $this->b(); } private function b() { print "super\n"; } } class sub extends super { } $obj = new class() extends super { private function b() { print "sub\n"; } }; $obj->a();
You have javascript disabled. You will not be able to edit any code.