index.php

index.php

  1. <?php
  2.  
  3. include_once(dirname(__FILE__)."/class.Toy.php");
  4. include_once(dirname(__FILE__)."/class.Car.php");
  5.  
  6. $oToy = new Toy();
  7. print "Toy name: ".$oToy->getName()."<p>";
  8.  
  9. $oCar = new Car();
  10. print "Car model: ".$oCar->getModel()."<p>";
  11.  
  12. ?>
Comments are closed.