class A { &nbsp &nbsp public: &nbsp...
发布于 2022-03-03 15:13:48
class A { public: A() { Foo() } virtual void Foo() { printf("A Foo\n") } } class B : public A { public: B() = default void Foo() override { printf("B Foo\n") } } int main() { B b = B() b.Foo() return 0 }
登录后免费查看答案
关注者
0
被浏览
25