Question: In Java, two types of personnel objects have been developed: Person and Employee. Suppose the directory will be extended with a few other types, including

In Java, two types of personnel objects have been developed: Person and Employee. Suppose the directory will be extended with a few other types, including Executives, Security, and Volunteers. In order to accommodate future extensions to multiple personnel categories, incorporate the factory pattern so that after calling the createPersonnel method of the PersonnelFactory, the Personnel Directory calls the PersonnelFactory to return the appropriate personnel type.

Can you do the following?:

Design the PersonnelFactory class to satisfy these requirements. After you have incorporated the PersonnelFactory, draw the UML class diagram of the Personnel Directory using Astah.

implement the new PersonnelDirectory system applicaiton in Java that complies with the class diagram

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!