Homework 3
Inheritance and Polymorphism

Due: Tuesday, April 7 at 5pm

Outcomes

After successfully completing this assignment, you will...

Before Starting

Read Chapters 7 - 9 in Horstmann.

The Assignment

Write a program that implements an appointment book. There are three kinds of appointments: OneTimeOnly, Daily, and Monthly. An appointment has a description (e.g., "visit Mom") and a date/time (e.g., every month on the 14th at 2pm). Appointments always begin on the hour, and last for one hour. An appointment book is a collection of appointments. Appointments can be added to the appointment book, and the entire contents of the appointment book can be displayed. In addition, an individual appointment can be checked to see if it occurs on a given date (e.g. does this appointment occur on June 14?)

NOTE: Use the class names and method signatures exactly as given in the following descriptions. We'll be running your code with our own main program that will rely on the given names and signatures.

Data

Methods

Deliverables

Export your Eclipse project to a zip file and submit the zip file via web-based turnin. To export a project, go to File | Export… and choose Archive File from the General folder. Check off the entire project in the top left window and make sure the format is .zip and not .tar. Finally, give the archive file a name and click finish.

The name of the turnin project is Homework 3.

Programs submitted after 5pm on April 7 will be tagged as late, and will be subject to the late homework policy.

Grading

Your program must compile without errors in order to receive any credit. It is suggested that before you submit your program, you should compile it one more time to make sure that it compiles correctly. When grading your program we'll be running our own set of test cases against your classes. Make sure you name your classes and methods exactly as specified.