摘要: name."'s eating "."'$food"."\n"; } public function info(){ echo "HUMAN :".$this->name. ";".$this->height.";".$this->isHungry."\n"; } } class Animal{ } //类的定义以关键字class开始,后面是类的名称,类的命名通常第一个字母大写,以... 阅读全文