A类继承B类,那么A类的构造函数必须实现与B类相同的构造函数 如:B(),B(string filename) 那么A类中必须实现: A(),A(string filename) 转载于:https://www.cnblogs.com/swtool/p/5471178.html