ITEC 120 LAB 22 Back to Lab index page

Polymorphism and abstract classes

Download these 5 files: Lab22.java, AddressBook.java, Contact.java, Friend,java, BusAssoc.java.

You will not need to make any changes to Lab22.java and Contact.java. You will need to add code to the other three files, simply look at the documentation in each file to determine where to add code.

Before you start this project, draw the class diagram. This will help you get the overall picture. You do not need to add any instance data anywhere. Also, method headers are present in the code. So you can create a complete class diagram with the information given.

Once finished, KEEP THESE FILES so you can add to them for Lab 23, the final Lab.

Once you have your program working, show your lab to the Peer Instructor to be checked off. Also show the Peer Instructor your class diagram.