Design Pattern Test
Design Pattern Test
DECORATOR
Object Structural
FLYWEIGHT
Object Structural
PROXY
Object Structural
FACADE
Object Structural
Complex System
ClientFlyweightFactory
+getFlyweight(in key)
◆
ConcreteFlyweight
-intrinsicState+operation(in extrinsicState)
UnsharedConcreteFlyweight
-allState+operation(in extrinsicState)<<interface>>
Flyweight
+operation(in extrinsicState)
Client
<<interface>>
Subject
+request()
represents
RealSubject
+request()
Proxy
+request()
ConcreteComponent
+operation()
ConcreteDecorator
-addedState+operation()+addedBehavior()
Decorator
+operation()<<interface>>
Component
+operation()
Facade