According to the Protected Variations principle of the GRASP approach to object-oriented design, how can you avoid the impact of changes of some objects on others in the system?

All QuestionsCategory: Cpp LanguageAccording to the Protected Variations principle of the GRASP approach to object-oriented design, how can you avoid the impact of changes of some objects on others in the system?
Anonymous asked 3 years ago

Options:

  1. Use interfaces to stabilize predicted changes and variations on the system
  2. Use methods that modify a single piece of data in the class definition
  3. Use abstract classes to represent real-world things
  4. Use child classes to override existing methods in parent classes
1 Answers
Best Answer
Anonymous answered 3 years ago

The correct answer is:

  1. Use interfaces to stabilize predicted changes and variations on the system