PHP 类的继承一些知识点汇总
摘要:
name; }}//定义一个子类class NoteComputer extends Computer{ //子类不需要父类的字段和方法,可采用重写的方法覆盖掉父类等等字段 public $name = 'james'; public function say() { ... 阅读全文
posted @ 2015-12-28 10:28 飞羽哥哥 阅读(280) 评论(0) 推荐(0) 编辑
posted @ 2015-12-28 10:28 飞羽哥哥 阅读(280) 评论(0) 推荐(0) 编辑
posted @ 2015-12-28 10:25 飞羽哥哥 阅读(313) 评论(0) 推荐(0) 编辑