Which of the following statements embodies the Information Expert principle in the GRASP approach to object-oriented design?

All QuestionsCategory: Cpp LanguageWhich of the following statements embodies the Information Expert principle in the GRASP approach to object-oriented design?
Anonymous asked 3 years ago

Options:

  1. Assign responsibility to a class based on its position in the class hierarchy
  2. Assign responsibility to the class that has the information needed to fulfill it
  3. Assign one responsibility to each subclass of a superclass
  4. Assign the responsibilities of subclasses to the shared superclass

 

1 Answers
Anonymous answered 3 years ago

The correct answer is:

  1. Assign responsibility to the class that has the information needed to fulfill it