Computer Science, asked by avikumar986, 1 day ago

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

Answers

Answered by ajitkaran2011
32

Answer:

3.Create an intermediary class to act as a middleman between objects

Explanation:

Thank me later

Answered by Banjeet1141
9

Answer:

Create an intermediary class to act as a middleman between objects is the correct answer.

Explanation:

GRASP stands for General Responsibility Assignment Software Patterns (or Principles) and includes a set of  "nine essential principles in object design and responsibility assignment," which were initially published by Craig Larman.

GRASP employs the following patterns and principles:

  • controller,
  • creator,
  • indirection,
  • information expert,
  • low coupling,
  • high cohesion,
  • polymorphism,
  • protected variations, and
  • pure creation.

All these patterns handle some software challenges common to many software development efforts. These techniques were developed not to establish new ways of working, but to improve the documentation and standardization of old, tried-and-true programming ideas in object-oriented design.

"A well-educated mind in design concepts is a critical design tool for software development," said by Larman. It has nothing to do with UML or any other technology."

                As a result, the GRASP principles are essentially a mental toolkit, a learning aid for the design of object-oriented software.

                 A pattern is a defined description of a problem and solution that can be applied in new settings in object-oriented design; ideally, a pattern instructs us on how to apply its solution in changing conditions and examines the pressures and trade-offs. Given a specific type of problem, many patterns drive the assignment of responsibilities to objects.

Read here more-

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

https://brainly.in/question/46100075

Which of the following statements describe the low coupling principle of the grasp approach to object-oriented design?

https://brainly.in/question/52019279

Similar questions