MCQs>IT & Programming>C++>If class B inherits class A, A::x() and is declared virtual, and B::x() overrides A::x(), which method x() will be called by the following code? B b; b.x();
C++ MCQs
If class B inherits class A, A::x() and is declared virtual, and B::x() overrides A::x(), which method x() will be called by the following code? B b; b.x();
Answer
Correct Answer: B::x()
Explanation:
Note: This Question is unanswered, help us to find answer for this one