摘要:
<?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
刘宝成
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号