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
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:7| Question number:39
All Answers
total answers (1)
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