- All Implemented Interfaces:
Strategy
Another Concrete Strategy that implements a different algorithm.
-
Constructor Summary
Constructors
Default constructor for ConcreteStrategyB.
-
Method Summary
Executes the algorithm specific to ConcreteStrategyB.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ConcreteStrategyB
public ConcreteStrategyB()
Default constructor for ConcreteStrategyB.
-
Method Details
-
execute
Executes the algorithm specific to ConcreteStrategyB.
- Specified by:
execute in interface Strategy
- Returns:
- The result of the algorithm as a string.