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

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it