Attribute Object

Intent

How do you model an important one-to-one relationship?

product

Solution

Place an Attribute Object between a Client and a Related Object to manage the relationship

Consequences

Decouples the association between a client and its related object, thus providing a looser binding

Related Patterns

Make the FactoryMethod in the Creator class construct a default object that may be overridden by subclasses.

Consequences


Quick Pick