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

What is the Rule of Zero?

  1. A Never write any classes
  2. B Design classes so that no user-defined destructor or copy or move operations are needed
  3. C Always define all five special members
  4. D Avoid using the standard library
Answer

Design classes so that no user-defined destructor or copy or move operations are needed

If every member manages itself, such as string, vector and unique_ptr, the compiler-generated special members are all correct.

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