Java · Inheritance, polymorphism and interfaces
When two classes share most of their code, one can take it from the other instead of copying it.