package strategy; public class Context<T extends Strategy> { private T strategy; public void Operation() { strategy.DoAlgorithm(); }}