Consider the following UML class diagram for a Hospital. You'll find that each class shape is labeled with its name in t
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Consider the following UML class diagram for a Hospital. You'll find that each class shape is labeled with its name in t
make a person interface and implements with abstract person class
and rest all things are in diagram just look for it and eventually
we need the driver class demonstrate polymorphism via
Inheritance and polymorphism via interface. All code are in Java
and please documentation is strongly needed to complete this work.
Thank you once again.
Consider the following UML class diagram for a Hospital. You'll find that each class shape is labeled with its name in the first row, the second row displays each attribute of the class on a separate line, and the third row displays each operation on a separate line. From there, additional UML symbols are used to model the various interactions and objects involved within the process. class Organization Person Hospital name: String(id) address: Address phone Phone title: givenName: middleName familyName name: birthDate: gender: home Address: phone: String String String String FullName Date Gender Address Phone Department 1 Starr Patient id: String {id} name: FulName gender Gender birthDate: Date lage: Integer accepted sickness History prescriptions: String allergies String specialReqs: Sringil Date joined education certification: languages Date String") String") String") Operations Staff Administrative Staff Technical Staff Nurse Front Desk Staff Technician Doctor specialty. String") locations: String") Technologist surgeon Surgical Technologist Surgeon Receptionist UML diagram for a Hospital
implement this Hospital UML diagram. • You need to create a Person interface and Person class needs to implement it. • The person class should be abstract class and its subclasses need to implement abstract methods. Make logical guess as necessary and use some mock data. • You have to use the exception handling technique for handling unchecked exceptions in all cases. • Beside all classes, you need to create a driver class for creating various instances and making them work together • You need to demonstrate the Polymorphism via Inheritance in the driver class. Similarly, you need to demonstrate Polymorphism via Interface in the driver class.