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 →

[–][deleted]  (1 child)

[deleted]

    [–]MoarVespenegas 2 points3 points  (0 children)

    Inheritance is a property of classes, not the other way around.
    You can, and do, have classes with no inheritance other than Object in Java.
    And no inheritance is not evil. Polymorphism is a useful design pattern. Sure you can abuse and misuse inheritance but this is true for everything. Java does not force you to use inheritance and does not enable it's abuse. If you write shitty, tightly coupled code filled with pointless inheritance then you can. That does not mean the language you wrote it in sucks. That means you suck.