In a copy constructor why do arguments need to have default values associated with them?
What happens if there are no default values associated with them and more than one argument is provided in the constructor?
For example:
X(const X& copy_from_me, int = 10);
has a default value for the int, but this:
X(const X& copy_from_me, int);
does not. What happens in this second case?
No comments:
Post a Comment