2013年4月8日

摘要: <?php/* 父类 老猴子 */class Monkey { public $name; public $age; public function __construct($name, $age) { $this->name = $name; $this->age = $age; echo "我叫{$this->name},今年{$this->age}岁。<br />\n"; } public function climb() { echo "我会爬树!<br />\n"; }}/* 接口 鸟儿提供 阅读全文
posted @ 2013-04-08 10:52 刘宝成 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-04-08 09:19 刘宝成 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-04-08 09:10 刘宝成 阅读(92) 评论(0) 推荐(0) 编辑

导航