Page 1 of 1

What is the role of destructors in Classes?

Posted: Wed Jul 13, 2022 7:52 pm
by answerhappygod
a) To modify the data whenever required
b) To destroy an object when the lifetime of an object ends
c) To initialize the data members of an object when it is created
d) To call private functions from the outer world