码迷,mamicode.com
首页 >  
搜索关键字:在子类中重载父类的方法(重写方法)    ( 1个结果
在子类中重载父类的方法(重写方法)
<?phpclassperson{ protected$name; protected$sex; protected$age; function__construct($name,$sex,$age){ $this->name=$name; $this->sex=$sex; $this->age=$age; } functionsay(){ echo"我的名字:".$this->name.";性别:".$this->sex.";年龄:".$..
分类:其他好文   时间:2016-11-04 17:32:19    阅读次数:196
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!