This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: ] c. [Done] How can we get nicely formatted output when we display an object using System.out.println()? * implementing the toString() method ] d. How can we chain code in Constructors so we don't have to write the same code multiple times? [ chain constructors using this as the first action in the constructor ] e. How can we make a copy of an object? [ copy constructor] f. Problems and [ solutions ], not necessarily in the following order. Last Time & Today: 10-05 Class Notes CS 107 Wednesday, October 05, 2011 1:08 PM CS 107 Fall 2011 Page 1 Deep vs. Shallow copy of an object: Consider having an Employee class that itself has in instance of Date . Create a copy constructor for the Employee class. What happens to the Date? How can we do a deep comparison of objects? [ implement an equals(. .) method ] g. CS 107 Fall 2011 Page 2...
View Full Document
This note was uploaded on 02/10/2012 for the course COP 2273 taught by Professor Lin during the Fall '11 term at University of Central Florida.
- Fall '11
- Computer Programming