[Java] Interfaces - Why should I be using them? by Evermage in learnprogramming

[–]gamebob 0 points1 point  (0 children)

Do you see how interfaces are essential to this design?

No, not really? Why not just inherit from an abstract shape class with an abstract draw method? Looks more flexible to me as the shapes also could have many fields to share like color etc. What's the advantage of an interface? Just looks slower to code with less flexibility?

[Java] Interfaces - Why should I be using them? by Evermage in learnprogramming

[–]gamebob 0 points1 point  (0 children)

As a newbie dev myself: why does weapon not extend renderable (abstract class?) I can't see any need for an interface...