这个是面向对象的继承特性!例:mood为phpcms的一个模块!mood下面有个index.php,它一般为模块的默认控制器,比如,index.php里面有会员的一个memberinfo成员变量,my_index.php如果也要用到memberinfo信息,要么在构造函数里面,初始化一个,或者继承index.php. 继承一般都是继承父类的成员变量,以及函数。前提修饰符(public,private,protect)不能是protect!