第2关:属性继承
<?php
class BaseClass
{
protected $name = 'BaseClass protected proterty';
}
class SubClass extends BaseClass
{
public function show()
{
/********** Begin **********/
echo $this->name;
/********** End **********/
}
}