TeachJava! |
Morning Lecture
Programming in Java = Programming in Scheme + object-oriented transformations(design patterns)
Entry
object
consisting of three fields (name, address, phone
)
and the operations to access those three fields.
Let's summarize the form of an Entry as a table:
Fields:
Methods:
String getName();
String getAddress();
String getPhone();
e.getName()
instead of (getName e)
! == && ||
equals
method
Overview:
finger exercises in sections 1.1 through 1.4. The
file DeptDir
is located at the URL
http://www.cs.rice.edu/~cork/teachjava/code/DeptDir.java. Use the online version of the notes to find exercises 1.4.2,
1.4.3, and 1.4.4.
Assigment:
Afternoon Lecture
Afternoon Laboratory
Overview: Exercises 1.4.1, 1.5