Differentiate between constructor and destructor function
Constructor and Destructor comes under C++ language. A constructor is automatically called when an object of a class is created and is mainly used to initialise data members or allocate resources whereas a destructor is automatically called when an object goes out of scope or is destroyed and is used to release resources such as memory or files.




.jpg)