index.php
- <?php
- include_once(dirname(__FILE__)."/class.Toy.php");
- include_once(dirname(__FILE__)."/class.Car.php");
- $oToy = new Toy();
- print "Toy name: ".$oToy->getName()."<p>";
- $oCar = new Car();
- print "Car model: ".$oCar->getModel()."<p>";
- ?>