topical media & game development

talk show tell print

professional-php-01-class.Jar.php / php



  <?
  require_once('interface.Openable.php');
  
  class Jar implements Openable {
    private contents;
  
    public function __construct(contents) {
      this->contents = contents;
    }
  
    public function open() {
      print "the jar is now open<br>";
    }
   
    public function close() {
      print "the jar is now closed<br>";
    }
  }
  ?>
  


(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.