name; }}class b extends">
时间:2021-07-01 10:21:17 帮助过:25人阅读
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();