Duplicates are found in code due to lack of inheritance which introduces unneeded maintenance complexity. Why not define common methods in for example common abstract class?
public class Button implements IButton {
...
public void click() {
base.click();
}
public class Link implements ILink{
...
public void click() {
base.click();
}
}
Duplicates are found in code due to lack of inheritance which introduces unneeded maintenance complexity. Why not define common methods in for example common abstract class?