Q:

What would happen in the previous exercise if the return type of move, set, and display was Screen rather than Screen&

0

What would happen in the previous exercise if the return type of move, set, and display was Screen rather than Screen&?

All Answers

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

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.

 

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