Question: Your local hospital has asked you to develop a program that will manage health care records. Implement the following 2 classes and write a program

Your local hospital has asked you to develop a program that will manage health care records. Implement the following 2 classes and write a program that tests these classes: Patient class has private data members firstName, lastName, patientID, billTotal. Doctor class has private data members firstName, lastName, specialization. For each class implement at least one constructor. The constructor should initialize at least one of the private data members. For each class implement accessor member functions for all private data members. For the Patient class, implement a mutator member function that sets the billTotal data member to an updated total if a charge has been made. To test a class you would write a program that uses the constructor to construct an object of the class type and then calls all mutator member functions. Write a program that tests your Patient and Doctor classes. You must thoroughly comment your code by providing a comment for each line of code. Apply troubleshooting and testing strategies to ensure your code compiles, runs, and provides accurate results.

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!