Class A {
public:
A(int i = 0, int k = 0) {}
~A() {}
};
int main()
{
A a;
A b(1,2);
}
Why is this default argument constructor the default constructor. Why is it not called a parameterized constructor or a parameterized default constructor, because even if this constructor is called without arguments, it contains two arguments? Is there any specific reason or its only because the standard speaks about it.
source
share