Medium
What will it be displayed?
<?php
class Foo
{
public function getFullName()
{
return $this->getName() . ' surname';
}
final private function getName()
{
return 'name';
}
}
$foo = new Foo();
echo $foo->getFullName();
Edit
Similar QuestionsMore questions about PHP