- All Implemented Interfaces:
Strategy
A Concrete Strategy that implements an algorithm.
-
Constructor Summary
Constructors
Default constructor for ConcreteStrategyA.
-
Method Summary
Execute the algorithm defined by this concrete strategy.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ConcreteStrategyA
public ConcreteStrategyA()
Default constructor for ConcreteStrategyA.
-
Method Details
-
execute
Execute the algorithm defined by this concrete strategy.
- Specified by:
execute in interface Strategy
- Returns:
- A string result of the algorithm.