Destructors can be ________

Destructors can be ________
A. Abstract type
B. Virtual
C. Void
D. Any type depending on situation
 
Answer: b
Explanation: The destructors can be virtual. It is actually advised to keep the destructors virtual always. This is done to suppress the problems that may arise if inheritance is involved.
 

Tìm kiếm

Back
Top