Sample Question #255 (programming – C++)
Which of the following are false regarding destructors:
- Destructors are not inherited
- A class may have only one destructor
- Destructors may not be invoked directly
- The return type of a destructor is not "void"
- Destructors cannot accept arguments
Advertisements
ANSWER
1. False. You can do virtual inheritance.
3. False. A destructor can be invoked directly.
3. the original statement is right.