C++ | Destructors | Question 3
Like constructors, can there be more than one destructors in a class?
(A) Yes
(B) No
Answer: (B)
Explanation: There can be only one destructor in a class. Destructor’s signature is always ~ClassNam() and they can not be passed arguments.
Quiz of this Question
Recommended Posts:
- C++ | Destructors | Question 5
- C++ | Destructors | Question 2
- C++ | Destructors | Question 4
- C++ | Destructors | Question 1
- Playing with Destructors in C++
- C++ | Templates | Question 6
- C++ | Misc C++ | Question 6
- C++ | Inheritance | Question 14
- C++ | Misc C++ | Question 7
- C++ | Misc C++ | Question 8
- C++ | References | Question 6
- C++ | Inheritance | Question 13
- C++ | Inheritance | Question 12
- C++ | Templates | Question 10
- C++ | Templates | Question 8



