Professional Documents
Culture Documents
MRK - Fall 2021 - CS504 - 2 - BC190413262
MRK - Fall 2021 - CS504 - 2 - BC190413262
MRK - Fall 2021 - CS504 - 2 - BC190413262
You are required to identify inherited classes for the following “User” class of the “Doctor
Patient Portal” using the concept of inheritance in Object Oriented Programming.
1.Doctor
2.Patients
User Inherited Classes
3. Admin
Keeping in view the Functional requirements for “Doctor Patient Portal”. Identify major
operations for “Patient” class.
1. Search()
2. View()
Patient class Operations
3. BookingAnAppointment()
4. cancellationOfAppointment()
Keeping in view the Functional requirements for “Doctor Patient Portal”. Identify major
operations for “Doctor” class.
1. checkUpcomingAppoinments()
Doctor class Operations
2. viewPatientHistory()
Question 4:
Given the class User, which is identified as a low cohesive class, you are required to
create a highly cohesive class(es) out of this class comprising of all essential elements:
class name, attributes, and operations.
User
String DoctotName;
String AdminName;
Int DoctorAge;
Int AdminAge;
String AdminGender;
String DoctorSpecialization;
viewPatientHistory();
addRecords();
viewScheduledAppointments();
UpdateRecords();
Doctor
Admin String DoctotName;
String AdminName; Int DoctorAge;
Int AdminAge; String DoctorSpecialization;
String AdminGender; viewPatientHistory();
addRecords(); viewScheduledAppointments();
UpdateRecords();