According to the Indirection principle of the GRASP approach to object-oriented design, how can you decouple multiple objects to better support reuse?
Options:
- Create a child class that can be substituted for a parent class
- Create an intermediary class to act as a middleman between objects
- Create a superclass that’s of a different type to its subclasses
-
Create a fake class to handle operations that don’t belong with other objects