Java · Inheritance, polymorphism and interfaces
One variable of a superclass type can hold a Dog or a Cat, and each call still runs the right animal's method.