Package Behavioral.Strategy
Interface Strategy
- All Known Implementing Classes:
ConcreteStrategyA,ConcreteStrategyB
public interface Strategy
The Strategy interface declares the common behavior for all supported algorithms.
-
Method Summary
-
Method Details
-
execute
String execute()Execute the strategy's algorithm.- Returns:
- The result of the algorithm as a string.
-