What does default mean in C++?

A default argument is a value provided in a function declaration that is automatically assigned by the compiler if the caller of the function doesn’t provide a value for the argument with a default value . In case any value is passed the default value is overridden.

Read more

Why are default constructors used?

Default Constructors in C++ Constructors are functions of a class that are executed when new objects of the class are created. The constructors have the same name as the class and no return type, not even void. They are primarily useful for providing initial values for variables of the class .

Read more