摘要: "; } public function Method2() { echo "abstract Method2"; } public function Method3() { echo "abstract Method3"; } public function doSomeThing()//骨架... 阅读全文
posted @ 2014-10-27 17:23 tai君 阅读(377) 评论(0) 推荐(0) 编辑
摘要: state = $state; } public function getState(){ return $this->state; } public function copy(){ return clone $this;//浅拷贝 /* * 深拷贝 */// $tmp = s... 阅读全文
posted @ 2014-10-27 16:44 tai君 阅读(1438) 评论(0) 推荐(0) 编辑
摘要: createobj();$m->work();?> UML类图如下 阅读全文
posted @ 2014-10-27 15:25 tai君 阅读(221) 评论(0) 推荐(0) 编辑
摘要: a = new pjl(); } public function say(){ $this->a->say(); } public function ml(){ $this->a->ml(); }}$m = new wangpo();$m->say();echo "";$m->ml();?> ... 阅读全文
posted @ 2014-10-27 15:24 tai君 阅读(263) 评论(0) 推荐(0) 编辑