Valkovski / example

0 stars 0 forks source link

Define proper Web Controls inheritance strategy to avoid unused code duplications: #9

Open YagelNasManit opened 6 years ago

YagelNasManit commented 6 years ago

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();
    }
}
Valkovski commented 6 years ago

let's discuss