What is the use of default constructor?
- It's a constructor that doesn't accept any parameters.
- If there is no user-defined constructor for a class, compiler declares a default parameter less constructor known as default constructor. It's an inline public member of its class.
When compiler uses this constructor to create an object -constructor will have no constructor initializer and a null body.