strategy pattern depending on class type code example
Example: strategy pattern definitiom
public interface Strategy {
public int doOperation(int num1, int num2);
}
public interface Strategy {
public int doOperation(int num1, int num2);
}