摘要:
<?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"; }}/* 接口 鸟儿提供 阅读全文