如果子类没自定义构造函数,则自动执行父类的构造函数, 反之,则要显式调用parent::__construct() 转载于:https://www.cnblogs.com/wangshuazi/p/10033621.html