What do you mean by default argument? Give its suitable example.
Default argument
Initializing an argument with a value while defining a constructor is referred as constructor with default value. When a constructor with default value is declared in a class, it does not require object to pass value for default argument. Constructor will execute without passing default argument value with the object. If object contains value for default argument, then passed value overwrites the default value.
Example:
class ABC
{
int x,y;
public:
ABC(int p, int q=10)
{
x=p;
y=q;
}
};
void main()
{