What would happen in the previous exercise if the return type of move, set, and display was Screen rather than Screen&
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:7| Question number:28
All Answers
total answers (1)
If then, every time we call
`move`
,`set`
or`display`
, the function will return a new`Screen`
object that is the copy of the original`Screen`
object with the changes we made, while the original`Screen`
object keeps unchanged.