A

Admin • 833K Points
Coach

Q. If the default constructor is not defined, how will the objects of the class be created?

  • (A) An error will occur at runtime.
  • (B) The compiler will generate an error.
  • (C) The compiler provides its default constructor to build the object.
  • (D) None of the above
  • Correct Answer - Option(C)
  • Views: 26
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

If we define our own constructor, the compiler does not create the default constructor.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.