what is the use of default constructor- its a


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.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: what is the use of default constructor- its a
Reference No:- TGS0354923

Expected delivery within 24 Hours