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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started