C++:构造函数和析构函数能否为虚函数? 简单回答是:构造函数不能为虚函数,而析构函数可以且常常是虚函数. (1) 构造函数不能为虚函数 让我们来看看大牛C++之父 Bjarne Stroustrup 在<The C++ Programming Language>里是怎么说的: To construct an object, a constructor needs the exact type of the object it is to create. Consequently, a con…