Please enable JavaScript.
Coggle requires JavaScript to display documents.
Design Pattern (Decorator Pattern (Add more functions to an existing…
Design Pattern
Decorator Pattern
-
Decorator is an abstract class implements from the main component (if there are more than one decorators needed, otherwise it can be omitted)
-
-
Observer Pattern
-
Objects that want to get notifications subscribe the publisher (subscriber). Subscriber can also un-subscribe.
-
-
-
-
Strategy Pattern
Depend on context use different algorithms (e.g uses WLAN, 3G, 4G depends on location)
-
-
-