2016年6月7日
摘要: 1、克隆关键词:clone class Ren{ public $name; public $sex; function __construct($n,$s) //构造方法,设置初始值 { $this->name=$n; $this->sex = $s; } function __clone() / 阅读全文
posted @ 2016-06-07 21:18 By_The_Way 阅读(177) 评论(0) 推荐(0)
摘要: 1、抽象类:不能实例化,但是能被继承;关键词:abstract abstract class Zhiwu{ public $budong; public $gen; function Guanghezuoyong() { } function Huafenchuanbo() { } } 2、接口接口 阅读全文
posted @ 2016-06-07 20:59 By_The_Way 阅读(134) 评论(0) 推荐(0)