I have an
public interface DoIt {
void dosomething (int i, double x);
int dosomethingelse (String s);
}
some class that implement it is class_of_a etc…
and i want to add an new method in the interface lets say diditwork(int x);
How am i suppose to do that while avoiding the problems of recompiling or whatever problem that might be ? What would be the new hierarchy ?
Create a new interface and extend the old interface, something like: