topical media & game development
professional-php-05-club-singer.php / php
<?php
require_once("class.Collection.php");
class Singer {
// public
public function __construct(name) {
name;
}
}
class NightClub {
public singers;
public function __construct(this->name = this->singers = new Collection();
this);
}
public function _loadSingers(Collection col->addItem(new Singer('Frank Sinatra'));
col->addItem(new Singer('Sammy Davis, Jr.'));
}
}
?>
(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.