日期:2014-05-17 浏览次数:20396 次
<?php class A { [color=#FF0000]private[/color] $name = "Nciaer"; public function say() { echo $this -> name . "<br/>"; } } class B extends A { public $name = "Fansa"; } $b = new B(); $b -> say(); ?>
<?php class A { [color=#FF0000]public[/color] $name = "Nciaer"; public function say() { echo $this -> name . "<br/>"; } } class B extends A { public $name = "Fansa"; } $b = new B(); $b -> say(); ?>