topical media & game development

talk show tell print

professional-php-01-testOpenable.php / php



  <?php
    require_once('class.Door.php');
    require_once('class.Jar.php');
  
    function openSomething(Openable obj) {
      obj->open();
    }
  
    objDoor = new Door();
    objJar = new Jar("jelly");
  
    openSomething(objDoor);
    openSomething(objJar);
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.