ITEC 120 LAB 20 Back to Lab index page

Polymorphism and abstract classes

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

You will not need to make any changes to Lab20.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, you might want to 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 you have your program working, show your lab to the Peer Instructor to be checked off. Also show the Peer Instructor your class diagram.