摘要:
<?php class NorthCook { public function fan() { return '面条'; } public function cai() { return '炒菜'; } public function tang() { return '蛋花汤'; }} class 阅读全文
摘要:
<?phpclass Admin { public function __construct() { if($this->top null) { return; } $this->toper = new $this->top(); } public function proc($danger) { 阅读全文
摘要:
interface Factory { public static function getDB(); //接口里的类不用实现,下面的子类来具体实现} class MySQLFactory implements Factory { public static function getDB() { r 阅读全文