Lecture 15: Being Honest
Integrity of data: Exceptions. html pdf
Lecture 16: Looking the Same.
Abstracting over Data Types. html pdf
Code for Lecture 16: books.java authors.java objects.java
Lecture 17: Adding Up, Sorting, Selecting
Abstracting over Functional Behavior.
The material covered in this lecture is well explained in lectures 14 and 15 from Spring 2005. As an exercise, work out the problem of determining the total value of all objects in a list (total price, total distance, etc.) --- which is the problem we did in class.Young at Heart --- -- --Boston Marathon: Sorting the Runners: Lecture 13 - Spring 2005
Filter, OrMap, AndMap: Lecture 14 - Spring 2005