Write a C++ program to demonstrate the concept of constructors, destructors.
[show the order in which constructor and destructors are called]
Answers
Answered by
5
Answer:
Constructors and Destructors in C++ Constructors are special class functions which performs initialization of every object. ... Constructors initialize values to object members after storage is allocated to the object. Whereas, Destructor on the other hand is used to destroy the class object.
Similar questions