Q:

Would it be legal for both the constructor that takes a string and the one that takes an istream& to have default arguments? If not, why not

0

Would it be legal for both the constructor that takes a string and the one that takes an istream& to have default arguments? If not, why not?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

It is illegal for both constructors to have default arguments. If then, there will be two default constructors, and that's an error.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now