<?phpclass species1 { public $head; public $heart; public $genes; public function __construct() { echo "<h3>Info about species1: </h3><br>"; }public function report() { echo "Species1 contains .".$this->head. " head(s).<br>"; echo "Species1 contains .".$this->heart. " heart(s).<br>"; echo "Species1 contains .".$this->genes. " gene(s).<br>";}}class human extends species1 { public $name; public $arms; public $legs; public $eyes; public $tail; public $hands; public $feet; public function __construct() { echo "<h3>Human information: </h3>"; } public function report1() { echo "This Humans name is ".$this->name.".<br>"; echo "This Human has .".$this->arms." arms.<br>"; echo "This Human has .".$this->legs." legs.<br>"; echo "This Human has .".$this->eyes." eyes.<br>"; echo "This Human has .".$this->tail." tail.<br>"; echo "This Human has .".$this->hands." hands.<br>"; echo "This Human has .".$this->feet." feet.<br>"; }}class cat extends human { public $wickedeyes; public $alwayslandsonfeet; public function __construct() { echo "<h3>information about this cat: </h3>"; } public function report2() { echo "This cats name is ".$this->name.".<br>"; echo "Always lands on feet: ".$this->alwayslandsonfeet.".<br>"; echo "Wicked eyes: ".$this->wickedeyes.".<br>"; echo "This Cat has .".$this->arms." arms.<br>"; echo "This Cat has .".$this->legs." legs.<br>"; echo "This Cat has .".$this->eyes." eyes.<br>"; echo "This Cat has .".$this->tail." tail.<br>"; echo "This Cat has .".$this->hands." hands.<br>"; echo "This Cat has .".$this->feet." feet.<br>"; }}$alien = new species1;$alien->head = 1;$alien->heart = 1;$alien->genes = "lots";$alien->report();$ricky = new human;$ricky->$name = "Richard";$ricky->$arms = 2;$ricky->$legs = 2;$ricky->$eyes = 2;$ricky->$tail = 0;$ricky->$hands = 1;$ricky->$feet = 2;$ricky->report1();$michelle = new human;$michelle->$name = "Michelle the Half Cat";$michelle->$arms = 2;$michelle->$legs = 2;$michelle->$eyes = 2;$michelle->$tail = 1;$michelle->$hands = 1;$michelle->$feet = 2;$michele->report1();$mitsy = new cat;$mitsy->$wickedeyes = "yes";$mitsy->$alwayslandsonfeet = "yes";$mitsy->$name = "Michelle the Half Cat";$mitsy->$arms = 2;$mitsy->$legs = 2;$mitsy->$eyes = 2;$mitsy->$tail = 1;$mitsy->$hands = 1;$mitsy->$feet = 2;$mitsy->report2();?>