Question: Create a Patient class in C# for Wrightstown Hospital Billing Department. Include the following get and set properties and fields: patient ID number, name, age,

Create a Patient class in C# for Wrightstown Hospital Billing Department. Include the following get and set properties and fields: patient ID number, name, age, and amount due to the hospital. Add a constructor for the Patient class that accepts ID, name, age, and amount due. Override the ToString() method to return all the details for a patient printed out in record format. Using the Patient class as the base class, derive an InsuredPatient class. An InsuredPatient contains all the data of a Patient, plus fields to hold an insurance company name and the percentages of the hospital bill the insurance company will pay. You will need a constructor for this class as well. You will need to get and set those values in the InsuredPatient class. Insurance payments are based on the following table: Insurance CompanyPortion of the bill paid by insurance companyWrightstown Mutual80%Red Umbrella60%All other companies25% Override the parent class ToString() method to include the name of the insurance company, the percentage paid, and the amount due after the insurance has been applied to the bill

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!