Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

a class named PatientDemo that does the following: Create a Patient class for Wrightstown Hospital Billing Department. Include the following get and set properties and

a class named PatientDemo that does the following: Create a Patient class 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 Company Portion of the bill paid by insurance company Wrightstown Mutual 80% Red Umbrella 60% All other companies 25% 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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students explore these related Databases questions