Class notes
Class Constructor and Destructor in C++
- Course
- Institution
- Book
A class constructor is a special member function of a class that is executed whenever we create new objects of that class.A destructor is a special member function of a class that is executed whenever an object of it's class goes out of scope or whenever the delete expression is applied to a pointe...
[Show more]