topical media & game development
professional-php-01-class.Door.php / php
<?php
require_once('interface.Openable.php');
class Door implements Openable {
private this->_locked) {
print "Can't open the door. It's locked.";
} else {
print "creak...<br>";
}
}
public function close() {
print "Slam!!<br>";
}
public function lockDoor() {
this->_locked = false;
}
}
?>
(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.