Explain difference between Constructer and a method
Constructors are the special member, they do not have a return type. We can call the methods explicitly but constructors are called automatically when we create the object using the new operator. The purpose of constructor is to allocate the memory to the object and initialize the class\' variables. If you don\'t provide the constructor in your class, the compiler will insert the default constructor.