I have one interface I need to use:
public interface I {
void go1();
void go2();
}
Then I have multiple classes that implement this
public class A implements I {
@Override void go1() { ... }
@Override void go2() { ... }
}
public class B implements I {
@Override void go1() { ... }
@Override void go2() { ... }
}
the "go2" method is identical for all classes, and duplicating it is kinda redundant
so is it better to:
1) create an abstract for all these classes and put "go2" inside?
or
2) create "go2" in each class that and call "super()"?
or
3) anything better??