Vidyalelo
C++ Programming · Q68

Constructors and Destructors in C++

Programming · C++ Programming · question 68

Q68

What is the role of destructors in Classes?

A.
To modify the data whenever required
B.
To destroy an object when the lifetime of an object ends
Answer
C.
To initialize the data members of an object when it is created
D.
To call private functions from the outer world

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board