<?php error_reporting(-1); class foo { protected function bar() { echo "bara"; } } class bar extends foo { public function bar() { echo "barb"; } } $a = new bar();
You have javascript disabled. You will not be able to edit any code.