You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* you need to support the addition of new or unforeseen interfaces to existing classes and you don't want to impact clients that don't need this new interface. Extension Objects lets you keep related operations together by defining them in a separate class
22
+
* a class representing a key abstraction plays different roles for different clients. The number of roles the class can play should be open-ended. There is a need to preserve the key abstraction itself. For example, a customer object is still a customer object even if different subsystems view it differently.
23
+
* a class should be extensible with new behavior without subclassing from it.
24
+
25
+
## Real world examples
26
+
27
+
*[OpenDoc](https://en.wikipedia.org/wiki/OpenDoc)
28
+
*[Object Linking and Embedding](https://en.wikipedia.org/wiki/Object_Linking_and_Embedding)
0 commit comments