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
Get step-by-step solutions from verified subject matter experts
