You are viewing a single comment's thread. Return to all comments →
getLength() and other has to be const: int getLength() const { ...} copy constructor has to accept const reference: Box(const Box& box) {...}
Seems like cookies are disabled on this browser, please enable them to open this website
Box It!
You are viewing a single comment's thread. Return to all comments →
getLength() and other has to be const: int getLength() const { ...} copy constructor has to accept const reference: Box(const Box& box) {...}