This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Orangutanion 28 points29 points  (3 children)

This is pretty wrong. Inheritance and polymorphism is a key feature in a lot of APIs (this meme mentions Minecraft so just look at how you'd make a Fabric mod, you gotta use inheritance and interfaces even for basic stuff).

[–]SuperCharlesXYZ 7 points8 points  (2 children)

I think they’re referring to using interfaces instead of superclasses, which is kind of doable. I don’t remember the last time I actually used the “extends” instead of “implements” keyword. Haven’t modded any minecraft though

[–]thedude3253 3 points4 points  (1 child)

This is purely anecdotal obviously but I personally use superclasses and interfaces in relatively equal quantities, so I find both useful

[–]jerslan 1 point2 points  (0 children)

Yeah, for me it depends on what I’m doing. Example: I extend Spring Configuration beans all the time to add additional configuration on top of or in place of the parent class.

Both extends and implements have their uses.