What is the use of default constructor?
Page 1 of 1
What is the use of default constructor?
- It is a constructor that does not accept any parameters.
- If there is no user-defined constructor for a class, the compiler declares a default parameterless constructor called default constructor. It is an inline public member of its class.
When the compiler uses this constructor to create an object – the constructor will have no constructor initializer and a null body.
Similar topics
» What is a default constructor?
» What is a default constructor?
» What is the default access level?
» What is a constructor?
» What is copy constructor?
» What is a default constructor?
» What is the default access level?
» What is a constructor?
» What is copy constructor?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum