摘要: <?// animal.phpclass Animal { private $weight; public function getWeight() { return $this->weight; } public function setWeight($w) { $this->weight = $w; }}$myDog = new Dog();$myDog->setWeight(20);echo "Mydog's weight is ".$myDog->getWeight().'<br>';$myDog-& 阅读全文
posted @ 2013-01-09 11:28 希亚 阅读(167) 评论(0) 推荐(0) 编辑