日期:2014-05-16 浏览次数:20575 次
class a{ public $name="a"; public function test1() { echo $this->name; } } class b extends a { public $name="b"; public function test2() { parent::test1(); } } $a=new b(); $a->test2();