<?php class A { protected function getA() { return "a"; } } class B extends A { public function getA() { return parent::getA(); } } $b = new B(); var_dump($b->getA());
You have javascript disabled. You will not be able to edit any code.