Types of constructors
1. Void constructors or default constructors
This has no parameters and is must in case of dynamic allocation of objects.
2. Default parameter constructor
A default parameter is a function parameter that has a default value provided to it. If the user does not supply a value for this parameter, the default value will be used. If the user does supply a value for the default parameter, the user-supplied value is used.
[Read More]