Which of the following questions are relevant to the High Cohesion principle of the GRASP approach to object-oriented design?

All QuestionsCategory: Cpp LanguageWhich of the following questions are relevant to the High Cohesion principle of the GRASP approach to object-oriented design?
Anonymous asked 3 years ago

Options:

  1. Is this object doing things that another object should be responsible for?
  2. Is this object a subclass or superclass in the class hierarchy?
  3. Can this object create other objects?
  4. Do the functions that this object perform make sense for what this object is?
  5. Does this object have a “has a” relationship with other objects?
  6. Are the responsibilities of this object as focused as possible?

 

1 Answers
Anonymous answered 3 years ago

The correct answers are;

  1. Is this object doing things that another object should be responsible for?
  2. Do the functions that this object perform make sense for what this object is?
  3. Are the responsibilities of this object as focused as possible?