<?php
class Usuario{
public function getNome() {
return $this->nome;
}
public function setNome($nome){
$this->nome = $nome;
}
}
class Aluno extends Usuario{}
$aluno = new Aluno();
$aluno->setNome('joão');
echo $aluno->getNome();
echo $aluno->nome;
PD9waHAKY2xhc3MgVXN1YXJpb3sKICAgIHB1YmxpYyBmdW5jdGlvbiBnZXROb21lKCkgewogICAgICAgIHJldHVybiAkdGhpcy0+bm9tZTsKICAgIH0KICAgIHB1YmxpYyBmdW5jdGlvbiBzZXROb21lKCRub21lKXsKICAgICAgICAkdGhpcy0+bm9tZSA9ICRub21lOwogICAgfQp9CmNsYXNzIEFsdW5vIGV4dGVuZHMgVXN1YXJpb3t9CiRhbHVubyA9IG5ldyBBbHVubygpOwokYWx1bm8tPnNldE5vbWUoJ2pvw6NvJyk7ICAgICAgICAgIAplY2hvICRhbHVuby0+Z2V0Tm9tZSgpOwplY2hvICRhbHVuby0+bm9tZTsKdmFyX2R1bXAoZ2V0X29iamVjdF92YXJzKCRhbHVubykpOw==