CS 1401, Quiz #8

Date: Monday, October 24, 2005
Name (please type legibly, ideally in block letters): ______________________________________________________________________

1. Explain what is shallow copying of objects.














2. Suppose an object is created with the following fields initialized as shown.
String address = "652 Elm Street";
int numberOfFloors = 2;
float value = 76543.21;
GregorianCalendar timePurchased = new GregorianCalendar();
Show a diagram of the object and the result of doing a shallow copy.