PHP - Classes and Objects
What will be the output of this PHP code?
class Animal {
private $type = 'Dog';
public function getType() {
return $this->type;
}
}
$animal = new Animal();
echo $animal->type;