Question
Java: Create the following classes: Hospital, Patient, Doctor, Drug, Disease and Person! You can arrange these classes however you like. There are a few basic
Java:
Create the following classes: Hospital, Patient, Doctor, Drug, Disease 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) MUST Use arrays, where you see fit. eg) patients or doctors
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
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