Java · Inheritance, polymorphism and interfaces
An interface lists the methods a class promises to have, so code can work with any class that keeps the promise.