Which of the following is the correct about class destructor?
Question 1:
Which of the following is the correct about class destructor?
A.A destructor is a special member function of a class that is executed whenever an object of its class goes out of scope
B.A destructor has exactly the same name as that of the class with a prefixed tilde (~) and it can neither return a value nor can it take any parameters
C. Both of the above
D. None of the above
These questions are from this test. Would you like to take a practice test?