且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么派生类构造函数总是访问基类构造函数?

更新时间:2022-06-20 05:34:17

在开始弄乱派生对象中的继承功能之前,您可能已经具有基本类型的有效对象!

So that you may have a valid object of type "Base" before you start messing with the inherited functionality in your derived object!