Assigning a Larger Value to a Smaller Box

This slide shows the problem we are faced with. The variable x only has enough space for values of type Window. Yet the variable y holds more, since it also contains the data fields declared in the class textWindow.

We are trying to put a value that is too large into a box that is too small. What is going to happen to these extra fields?

[audio] [real] Text to accompany slide7, in Chapter 12 of An Introduction to Object-Oriented Programming