Defining compound data; functions on compound data: bookstore1.ss
Defining compound data that contains compound data; wish lists: bookstore2.ss
Defining lists of data; functions on lists of data: bookstore3.ss
Scheme loops: bookstore4.ss
Defining classes of data: bookstore1.java
Defining classes of data that contain instances of another class of data: bookstore2.java
Defining unions of data: bookstore3.java
Self-referential class hierarchies: mobile-data.java
Self-referential class hierarchies: bookstore4.java
Methods for simple classes: bookstore-methods1.java
Methods for classes with containment: bookstore-methods2.java
Methods for unions of classes: bookstore-methods3.java
Methods for unions of classes -- double dispatch: pets-lecture.java
Methods for self-referential-data: bookstore-methods4.java
Methods for self-referential-data: mobile-methods-lecture.java
Methods for mutually-referential-data: employee-lecture.java
Mini world with a red sun: mini-world.java
Re-post of Lecture 11 Spring 2006: bookstore-abstract.java
Object
s and the use of parametrized data types
(generics).
Original implementation of a bookstore list bookstore-simplelist.java
Original implementation of a bank accounts list bankaccts-simplelist.java
Bookstore list using a list of Object
bookstore-objectlist.java
Bank accounts list using a list of Object
bankaccts-objectlist.java
Bookstore list using a list of Object
with the
Book
class implementing the IsSame
interface
bookstore-objectlist-same.java
Bank accounts list using a list of Object
with the
Account
class implementing the IsSame
interface bankaccts-objectlist-same.java
Bookstore list using a list parametrized over type T
bookstore-genericlist.java
Bank accounts list using a list parametrized over type
T
bankaccts-genericlist.java
Bookstore list using a list parametrized over type T
with the
Book
class implementing the IsSame
interface
bookstore-genericlist-same.java
Bank accounts list using a list parametrized over type
T
with the
Account
class implementing the IsSame
interface bankaccts-genericlist-same.java
Bookstore list using a list parametrized over type T
that implements the IsSame
interface bookstore-genericlist-ok.java
Bank accounts list using a list parametrized over type T
that implements the IsSame
interface bankaccts-genericlist-ok.java