__construct()是php内置的构造函数 注意事项: 若父类和子类 都有 __construct,则只调用子类的__construct,不会自动调用父类的__construct子类的__construct方法如果要调用父类的__construct方法,必须在子类构造函数中调用父类的构造函数 parent::__construct(); // 子类中调用父类的构造函数