10-01-10 Class Notes CS 107

10-01-10 Class Notes CS 107 - In the set methods we can add...

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

View Full Document Right Arrow Icon
Announcements: See the solution to the test posted on web site Questions? Last Time: Objects & classes: developing the Date example - Let's you use Java to easily manipulate graphics - You can download it onto your phone! Example of some cool software: Processing.org Review of program #3 solution Review of Midterm #1 problems (if there are any questions…) Continuation of Objects and Classes discussion: Problems / Solutions for various steps along the way: Can set invalid values Make data members (aka instance variables private and use get and set methods to manipulate those values.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: In the set methods we can add code to do error checking. 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 3. Currently we need two steps to create an object and then set its values 4. We want to be able to share code between Constructors 5. How can we print out an object neatly? 6. How can we do a deep comparison of objects? 7. How can we make a copy of an object? 8. Today: 10-01-10 Class Notes CS 107 Friday, October 01, 2010 3:57 PM 107 Fall 2010 Page 1...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online