composition
Building a class from other objects held in its fields.
A has-a relationship; the outer class uses the inner object through its public methods and exposes only what it chooses.
Examples
class Car { private final Engine engine; ... }has an engine instead of being one.
See also