In the Strategy pattern, what is the relationship between the Context and the Strategy interface?
-
A
Context inherits from Strategy
-
B
Context holds a reference to a Strategy object and delegates behavior to it
-
C
Strategy is a static utility used by Context
-
D
Context and Strategy share a common base class