[英]Is it possible to extend a class without extending the methods of this class?
标题说明了一切。 我有一个包含很多变量和很多方法的类。
class bootstrap_class {
public
//-----Counters---------
$iColumn_count,
$iLink_count,
$iDia_count,
$iTab_count,
$iPadding,
$iColumns_per_page,
//-----Strings---------
$sCentered,
$sClass,
etc;
public function a () {
//do something
}
public function b () {
//do something
}
}
我正在尝试扩展此类,以创建没有所有方法的类。 然后,我想将此新类对象存储到父类中的数组变量中。
是否可以扩展类而不扩展该类的功能?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.