CS 1713 Recitation Exercise 12:
Object Hierarchies and Inheritance


Objectives:

Prior to the recitation:

Hand-in Requirements:

  • Hard-copy of the source for: DepartmentStore.java (10 pts) and DepartmentStoreTest.java (10 pts).
  • Overview:

    You will be using the class hierarchy shown in Figure 7.7 of the textbook to implement a DepartmentStore class that will track the employees of a particular store. The classes shown in Figure 7.7 (StaffMember, Employee, Executive and Hourly) are already written. Our department store doesn't use volunteers, so the Volunteer class isn't included. A helper class StaffMemberIO is also provided to create StaffMember objects of various types by reading data from a file. Part I explores the use of this class. Part II guides you through the development of a DepartmentStore class that uses StaffMember objects of various sorts.

    Setup:

    Part I: Using the StaffMemberIO class.

    Part II: The DepartmentStore class

    The DepartmentStore class keeps track of all the information about the employees for a particular store by keeping an array of objects corresponding to the information in employees.txt.
    Last revision: November 13, 2001 at 10:15 am.