摘要:
class Ren{ public $name; public $sex; function __construct($n,$s){ $this->name=$n; $this->sex = $s; } function __clone(){ $this->name = "李四"; //this代表 阅读全文
摘要:
1、继承 子类可以继承父类的一切,一个子类只能有一个父类,一个父类可以有多个子类 //父类 class Ren{ public $name; public $sex; public $yuyan; function Say() { echo $this->name."正在讲话!"; } } //美国 阅读全文