Skip to content
IT glossary
ProgrammingUpdated December 3, 2026

GRASP

A set of object-oriented design guidelines for deciding which object should do which job. For example, they help you decide whether an order, a service, or a request handler should calculate the amount a customer owes.

Also known as: Information Expert, Low Coupling

What GRASP is for

GRASP stands for General Responsibility Assignment Software Patterns. Its nine guidelines help you decide where behavior belongs in an object-oriented design. A responsibility can be something an object knows, such as which items are in an order, or something it does, such as adding up their prices. GRASP gives you ways to compare designs, not a prescribed class hierarchy. Information Expert and Low Coupling are two guidelines within GRASP, not alternative names for the whole set.

How to choose an owner

Start with Information Expert: which object has the information needed to do the work? If the information is spread across objects, let each one handle the part it knows about. Then check Low Coupling: what other objects and implementation details would this choice make the owner depend on? Finally, check High Cohesion: does the new job fit what the object already does? The object with the right data is a good starting point, but it is not always the right owner.

The other six guidelines cover recurring design decisions:

  • Creator: give object creation to a suitable owner, often one that contains the new object or has its initialization data.
  • Controller: let an object outside the UI receive a system operation and coordinate the work rather than do it all itself.
  • Polymorphism: let each type implement its own behavior instead of having callers repeatedly branch on type.
  • Pure Fabrication: introduce a class that does not represent a domain concept when it keeps unrelated responsibilities out of domain objects.
  • Indirection: put an intermediary between parts that should not depend on each other directly.
  • Protected Variations: put a stable contract around something likely to change.

Example: totaling an order

Suppose a request handler loops over the order's lines, reads their quantities and unit prices, and does the math. That works until another caller needs the total or the pricing rule changes. Instead, let a line compute its own subtotal and let the order add up the subtotals:

class OrderLine:
    def subtotal(self):
        return self.unit_price_cents * self.quantity

class Order:
    def total(self):
        return sum(line.subtotal() for line in self.lines)

The order still depends on its lines, but it knows only how to ask for a subtotal, not how one is computed. A line-level discount can change that computation without changing Order.total(), as long as the meaning of the subtotal stays the same.

Practical trade-offs and interview questions

GRASP is useful when designing a domain model or reviewing code that has accumulated too many jobs in one class. A common mistake is to treat Information Expert as “the object with the data must do everything.” An order may know everything needed to calculate a total, but that doesn't mean it should open a database connection to save itself. A repository can own persistence. Conversely, adding an interface to every class doesn't automatically reduce coupling: callers can still depend on undocumented behavior or details of the underlying implementation.

In an interview, you might be asked where to put pricing logic. Explain who has the inputs, what each class would depend on, and which code would change if the rule changed. If pricing needs a live exchange rate, for example, the application can fetch the rate and pass it to the calculation instead of making the order call an external service.