Categories
C++

Constructor & Destructor in C++

Constructor & Destructor The syntax of constructor and destructor is the same. The constructor name is totally same as the class name and the class name is used for the name of the destructor, with a tilde ~ sign as the prefix to it. What is Constructor? Constructor is a method. Constructor name must be same as […]