struct A { virtual void Foo(int) {} virtual void Foo(int, int) {} void Foo(int, int, int) {} }; struct B : A { virtual void Foo(int) {} }; int main() { B b; b.Foo(1); // 1 b.Foo(1, 2); // 2 b.Foo(1, 2, 3); // 3 }
B::Foo(int)
B
using A::Foo;
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment