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

Which of the following statements is TRUE?

  1. A destructor must be declare for each class
  2. A class can have only one destructor
  3. A destructor can have default arguments
  4. Destructors are not useful when the class contains pointer data members



Answer: 
Option b: A class can have only one destructor

Explanation Here

Post a Comment

0 Comments