YOUR SUBJECT CS441 Big Data ConceptsChange subject ↗
Object Oriented Programming

Question #1

Read the question, compare the options, and review the correct answer below.

CS304 · Midterm#1

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?

  1. A
    ? registration date and diagnosis
  2. B
    ? age and sex
  3. C
    ? sex and diagnosis
  4. D
    ? diagnosis and age
Show correct answer

Correct answer: A. ? registration date and diagnosis

Check community answers against your course notes.
← More practice questionsTake a timed test