15
b2plane
2y

IM WORKING IN JAVA MY WHOLE LIFE AND A DECADE LATER I JUST FOUND OUT AN INTERFACE CAN EXTEND ANOTHER INTERFACE

Comments
  • 10
    So you're 10?
  • 15
    You should be arrested
  • 0
  • 2
    Yeah.

    Java allows all kind of *theoretical* valid OOP approaches that will *practically* make your life a nightmare.

    E.g. "default" aka traits with extension is a nightmare.
  • 0
    Is this like inheriting a class in C++?
  • 1
    Sending a SWAT your way
  • 5
    @Demolishun yes, but with interfaces, multiple inheritance is not as problematic as with classes.
    And even though it’s similar to inheritance from a technical perspective, conceptually it’s more like tagging or conforming to some interface to enable capabilities like Equatable/Comparable/Hashable (or whatever they are called in Java)
  • 0
    No way you've worked with Java for ten years, these kind of things are learnt (or stumbled upon) in the first WEEKS when you try to get used to the language. You just need to stop behaving like a code monkey
Add Comment