Suppose you have been given the following design A person has a-04123
Suppose you have been given the following design, "A person has a name, age, address and sex. You are designing a class to represent a type of person called a patient. This kind of person may be given a diagnosis, have a spouse and may be alive". Given that the person class has already been created, what of the following would be appropriate to include when you design the patient class?
This multiple choice question (MCQ) is related to the book/course
vu cs304 Object Oriented Programming.
It can also be found in
vu cs304 Mid Term - Quiz No.3.
Suppose you have been given the following design, "A person has a name, age, address and sex. You are designing a class to represent a type of person called a patient. This kind of person may be given a diagnosis, have a spouse and may be alive". Given that the person class has already been created, what of the following would be appropriate to include when you design the patient class?
age and sex
registration date and diagnosis
diagnosis and age
sex and diagnosis