What is a default constructor?
- Default constructor is the constructor with no arguments or all the arguments has default values.
- Default constructors are called during default initializations and value initializations.
Syntax:<class_name>()
{
}
Example:class A
{
A()
{
//statements;
}
}