<?php class a { protected function c() { echo 'Parent'; } public function test() { $this->c(); } } class b extends a { protected function c() { echo 'Child'; } } $o = new b(); $o->test();
You have javascript disabled. You will not be able to edit any code.