PHP - Classes and Objects
What will be the output of this PHP code?
class Person {
protected $name = 'Alice';
public function getName() {
return $this->name;
}
}
$person = new Person();
echo $person->getName();