Пример #1
0
 public function __construct($name = "")
 {
     parent::__construct($name);
     $this->setStrength($this->getStrength() + 10);
     echo "Rooooooar !\n";
 }
Пример #2
0
 public function __construct($name = '')
 {
     parent::__construct($name);
     $this->setIntelligence($this->getIntelligence() + 10);
     echo "PHP is Magic !\n";
 }