C++ MQCs with Explanation (CHAPTER 6: CONSTRUCTORS AND DESTRUCTORS)

Which of the following statements is TRUE?

  1. A class can have only one constructor
  2. A constructor must be declared for each class
  3. A default constructor can only be supplied by the compiler
  4. A constructor is automatically called each time an object is created



Answer: 
Option d: A constructor is automatically called each time an object is created

Explanation Here

Post a Comment

0 Comments