Question: Write the program in Java 13. In this exercise, you will design various classes and write a program to computerize the billing system of a

Write the program in Java

Write the program in Java 13. In this exercise, you will design

13. In this exercise, you will design various classes and write a program to computerize the billing system of a hospital. a. Design the class Doctor, inherited from the class Person, defined in Chapter 8, with an additional data member to store a doctor's specialty. Add appropriate constructors and methods to initialize, access and manipulate the data members. Design the class Bill with data members to store a patient's ID and the patient's hospital charges such as pharmacy charges for medicine the doctor's fee, and the room charges. Add appropriate constructors and methods to initialize, access, and manipulate the data members b. c. Design the class Patient, inherited firom the class Person, defined in Chapter 8, with additional data members to store a patient's ID, age, date of birth, attendingphysician's name, the date when the patient was admitted in the hospital, and the date when the patient was discharged from the bospital. (Use the class Date to store the date of birth, admit date, discharge date, and the class Doctor to store the attending physician's name.) Add appropnate constructors and methods to imitalize, access, and manipulate the data members Write a program to test your classes

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!