For outpatient print the bill with consultation feefor


Write a c++ program to define a class patient (name,age,gender). Derive two calsses from patient namely in-patient (ipno,date-of-adm,date-of-discharge) and outpatient (opno,doctor-id,consultation-fee). Define two classes namely general-ward (rent/day) and special ward (room no,rent/day,eb-bill). For outpatient print the bill with consultation fee,for in-patient,print bill according to their accommodation either in general ward or special ward.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: For outpatient print the bill with consultation feefor
Reference No:- TGS01543607

Now Priced at $10 (50% Discount)

Recommended (95%)

Rated (4.7/5)