We are going to spruce up our Week01 assignment to use abstract and interface.
Be sure to implement all methods exactly as specified, because I may hook your classes up to my own tester program!
“Person” never actually got used as an object – it was just extended. First, we’ll turn “Person” into an abstract class.
Every class that extends “Person” will need an ID, so “Person” will define abstract get and set for ID.
Re-write Customer and Employee to provide the getID() method and setID(int ID) methods.
Not only do Customer and Employee extend Person, they also implement a couple of interfaces:
You will have these classes, each in its own file:
Every .java file should have as its first line a comment with your name in it.
When your program runs, your name should appear in the title bar of the window.
Submit each file separately in the dropbox. If you use more classes, they should be implemented as inner classes, so that you have only these four files to submit.
If you are claiming extra credit, put a file named “extracredit.txt” in the drop box, explaining why you think you deserve extra credit.