a) What is inheritance can you code following diagram? Patients id,name,sneezing coughing fever,quarantine symptomatic Asmptomatic displaydata(patientsid,sneezing coughing quarantine)...


a) What is inheritance can you code following diagram?<br>Patients<br>id,name,sneezing coughing<br>fever,quarantine<br>symptomatic<br>Asmptomatic<br>displaydata(patientsid,sneezing<br>coughing quarantine)<br>displaydata(patientid,quarantinedays)<br>b) What is operator overloading? can you count patient object by operator overloading?<br>C) Can you add a friend class virus to print the patient data in the above code?<br>d)What is a shallow copy constructor ? Can you modify the above code to provide a shallow copy constructor in<br>Patient class?<br>

Extracted text: a) What is inheritance can you code following diagram? Patients id,name,sneezing coughing fever,quarantine symptomatic Asmptomatic displaydata(patientsid,sneezing coughing quarantine) displaydata(patientid,quarantinedays) b) What is operator overloading? can you count patient object by operator overloading? C) Can you add a friend class virus to print the patient data in the above code? d)What is a shallow copy constructor ? Can you modify the above code to provide a shallow copy constructor in Patient class?

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here