Java · Inheritance, polymorphism and interfaces

extends and is-a

When two classes share most of their code, one can take it from the other instead of copying it.