Q14
What is the difference between a constructor and a destructor in C++?
A.
Constructor is called when an object is destroyed, while destructor is called when an object is created
B.
Constructor is used to initialize objects, while destructor is used to free resources
C.
Constructor is called when an object is created, while destructor is called when an object is destroyed
AnswerD.
Constructor is used to free resources, while destructor is used to initialize objects
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board