Question 5
Back to Exercise
What is the purpose of override after a member function declaration?
- A Makes the function virtual in the base
- B Makes the compiler check that it really overrides a base virtual function Correct
- C Prevents further overriding
- D Makes it faster
Correct Answer: Option B
A signature mismatch (missing const, different parameter type) becomes a compile error instead of silently creating a new function.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!