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
0
okk
Explanation:
all the best for exams and give the best
Similar questions
Math,
16 days ago
Computer Science,
16 days ago
English,
1 month ago
History,
8 months ago
Computer Science,
8 months ago
Hindi,
8 months ago