Interface Strategy

All Known Implementing Classes:
ConcreteStrategyA, ConcreteStrategyB

public interface Strategy
The Strategy interface declares the common behavior for all supported algorithms.
  • Method Summary

    Modifier and Type
    Method
    Description
    Execute the strategy's algorithm.
  • Method Details

    • execute

      String execute()
      Execute the strategy's algorithm.
      Returns:
      The result of the algorithm as a string.