Computer Science, asked by simrkalsi02, 1 month ago

Define class Person with data members : Name and Age. Define Doctor subclass of Person with data members: Designation, Office Address, Specialization. Define Patient subclass of Person with data members PatientId, Disease, Prescription, Date of Appointment. Define input member function in Person, Doctor and Patient class. Override display function in all three classes. Use Dynamic method dispatch to display the details of Person, Patient and Doctor.
using java

Answers

Answered by Sukankita1234
0

okk

Explanation:

all the best for exams and give the best

Similar questions