阅读背景:

从标记为final的类的构造函数调用虚函数是不好的做法

来源:互联网 

Normally calling virtual functions from constructors is considered bad practice, because overridden functions in sub-objects will not be called as the objects have not been constructed yet.Normally calling virtual functions from constru




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: