09-24 Class Notes CS 107

09-24 Class Notes CS 107 - 1. Can't set multiple values...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Announcements: If you didn't get a flash drive in class last time, come to my office to get one. Midterm #1 next week (Yay) both in lab (T/W) and in class (Wed). Questions? Last Time: Classes: Date example Today: Developing the Date example further Problems / Solutions for various steps along the way: 1. Can set invalid values Make data members (aka instance variables private and use get and set methods to manipulate those values. In the set methods we can add code to do error checking.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1. Can't set multiple values with one method call 2. Can't set a month value with an int, as opposed to a String value Currently we need two steps to create an object and then set its values 3. 4. We want to be able to share code between Constructors 5. How can we print out an object neatly? How can we do a deep comparison of objects? 6. 7. How can we make a copy of an object? 09-24 Class Notes CS 107 Friday, September 24, 2010 3:50 PM 107 Fall 2010 Page 1...
View Full Document

This note was uploaded on 02/10/2012 for the course COP 2271 taught by Professor Reed during the Fall '10 term at University of Central Florida.

Ask a homework question - tutors are online