Professional Documents
Culture Documents
CS504 Assignment 2 Solution Fall 2021
CS504 Assignment 2 Solution Fall 2021
VUAnswer.com
Uploading Instruction:
Submit your assignment solution in doc/docx file format only.
Question 1:
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.
Solution:
VUAnswer.com
1. Admin
2. Doctor
User Inherited Classes 3. Patient
Question 2:
Keeping in view the Functional requirements for “Doctor Patient Portal”.
Identify major operations for “Patient” class.
Solution:
1. searchDoctor();
2. viewDoctorTimetable();
Patient class Operations
3. bookAppointment();
4. cancelAppointment();
VUAnswer.com
Question 3:
Keeping in view the Functional requirements for “Doctor Patient Portal”.
Identify major operations for “Doctor” class.
Solution:
Doctor 1. checkUpcomingAppointment();
Operations
class 2. viewPatientMedicalHistory();
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.
Solution:
VUAnswer.com
Admin Doctor
String AdminName; String DoctotName;
Int AdminAge; Int DoctorAge;
String AdminGender; String DoctorSpecialization;
addRecords(); viewPatientHistory();
UpdateRecords(); viewScheduledAppointments();
VUAnswer.com
REGARD SARIM
WHATSAPP +923162965677
PLEASE NOTE:
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file
before submitting copy paste solution will be marked zero.
If you found any mistake then correct yourself and inform me.
Before submitting an assignment check your assignment
requirement file.
If you need some help and question about file and solutions.