C++:构造函数中调用虚函数
链接:https://www.nowcoder.com/questionTerminal/94b0fd680ede438ca7fdde4888a39537来源:牛客网class A{ public: A ():m_iVal(0){test();} virtual void func() { std::cout<<m_iVal<<‘ ’;} ...