This preview shows page 1. Sign up to view the full content.
Unformatted text preview: thy Coder has ID 123456 and earns $60,000 per year. Hourly employees have
a name, an ID number and are paid an hourly wage. For example, Harry Hacker has ID 111222 and
works 15 hours a week for $20.00 per hour (so he earns $300 per week). Exercise 1
Step 1: The project contains incomplete implementations of classes named E p o e ,
S l r e E p o e and H u l E p o e . Your task is to complete the design and
implementation of the classes, subject to the following constraints:
● The S l r e E p o e and H u l E p o e classes must be subclasses of the
abstract E p o e class.
● It's up to you to decide what fields are needed by S l r e E p o e objects and
1 H u l E p o e objects. It's up to you to decide which of these fields should be declared
in the superclass, E p o e , and which fields should be defined in the subclasses. The
visibility of all of the fields must be p i a e
● S l r e E p o e and H u l E p o e must have a twoparameter constructor that
is passed the employee's name and ID number, and uses these values to initialize the object. All
of the object's other fields must be initialized to 0 when the object is created.
● Abstract class E p o e currently declares three abstra...
View Full Document
- Fall '11