Inheritance
abstract class BigDaddy {

  protected $feet = 6;
  protected $inches = 3;

  abstract public function get_height();

}


class Kid extends BigDaddy {

  public $shirt_color = blue;

  public function get_height() {

    echo "Height: " . $this->feet . "\" " . $this->inches . "'<br>\n";
    echo "<hr>\n";

  }

}

$kid = new Kid();
$kid->get_height();

class Man extends BigDaddy {

  public function get_height() {

    echo "Height: " . $this->feet . "\" " . $this->inches . "'<br>\n";
    $k = new Kid;
    echo "Shirt Color: " . $k->shirt_color . "<br>\n";
    echo "<hr>";

  }

}

$man = new Man();
$man->get_height();
class Cousin extends Man {

  public $pants_color = "black";

}


$cousin = new Cousin();
echo "Pants color: " . $cousin->pants_color;
echo "<br>\n";
$cousin->get_height();