虚函数在构造函数中失效
时间:2010-03-27 来源:qytan36
Remeber first: virtual table's construction isn't finished before the class's constructor, so the polymorphism is unavailable during the construction of the class.
e.g
class Base |
相关阅读 更多 +