Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which keyword asks the compiler to verify that a member function actually overrides a virtual function?

  1. A virtual
  2. B override
  3. C final
  4. D const
Answer

override

Without override, a slightly different signature silently creates a new function instead of overriding, which is a difficult bug to spot.

All C++ MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as