I have a class as shown below.
This class has a method addFilter with 2 parameters (type
String and type Command1 )
I have another class Command2. Here I need a similar method. The only difference is in the type of parameters passed. (type String and type Command).
I have started by using Interface
I would like the classes Command1 and Command2 to implement the interface Helper and override it these two public classes.
However my problem is in dealing with the 2nd parameter. Can anybody tell me how do I handle this issue?