Question: (JAVA) In Java, you want to create the following classes: Hospital, Patient, Doctor, Drug and Person. You can arrange these classes however you like. There

(JAVA)

In Java, you want to create the following classes: Hospital, Patient, Doctor, Drug and Person.

You can arrange these classes however you like.

There are a few basic things that you want to keep in mind:

1) To make sure that you have the correct relationships between your classes, keep in mind the has a, is a, and uses a relationship.

2) Use arrays where you see fit.

3) Write a Driver class that tests your classes by creating a bunch of objects.

NOTE: (You have the flexibility to do whatever you want as long as you create all the classes along with all the proper relationships)

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!