让我说我有一个抽象的ParentClass和一个ChildClass. ChildClass扩展ParentClass.现在ParentClass已经有了这个很好的构造
函数:
function __construct($tplFile) {
$this->$tplFile = $tplFile;
}
ChildClass会自动继承这个吗?如果我不添加任何构造函数到ChildClass,我可以说$foo = new ChildClass(“foo.tpl.PHP”);所以ParentClass的构造函数被调用?