Class :Inheritance constructor : override method

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>protected member </title>

</head>

<body text="#000080" bgcolor="#F0FAFF">
<form method="post" action="override_method.php">
<select name="auto" size="5">
<option> Path Finder</option>
<option> Explorer</option>
<option> Land Rover</option>
<option> Montero</option>
<option> Lexus</option>
</select>
<br/>
<input type="SUBMIT" value="Submit">
</form>
<?php
class automobile
{
var $name;
function auto_type($text)
{
$this->name = $text;
echo " This is base auto <br/>";
}
//constructor of base class automobile
function __construct($type) { $this->auto_type($type); }
}
class SUV extends automobile
{
var $name;
function auto_type($type)
{
$this->name = $type;
echo " This is override derived auto <br/>";
}
function show_type()
{

echo $this->name, "\t SUV is high <br/>";
if($this->name=="Lexus"){echo "Has special traction control feature"; }
}
//constructor of inherited class
function __construct($type) { $this->auto_type($type); }
}
echo " This is an example of <br>overriding a method <br/>" ;
echo "------<br/>";
if(isset($_REQUEST["auto"])){
$entry = $_POST['auto'];
$base = new automobile($entry);
$suv = new SUV($entry);
$suv->show_type();
}
echo "------";
?>
</body>
</html>