To allow options in constructing the object.Why do you have multiple constructors.
Read up on C++ references. In this context, it is used to pass by (const) reference.Also, I don't know what the "&" does when used after a string.
To allow options in constructing the object.Why do you have multiple constructors.
Read up on C++ references. In this context, it is used to pass by (const) reference.Also, I don't know what the "&" does when used after a string.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)