In this tutorial you will learn:
1. What are Constructors?
2. What are Destructors?
3. To use constructors and destructor in programs
4. Basic C++ syntax
What are constructors?
Whenever an object of a certain class is made, the data member of the objects are be initialized to some value and this purpose is achieved by using special function called constructors. A member function that is called automatically when an object is created.Constructors assign the values at the time when the object is made, if we don’t use the constructors a garbage