Which of the following best defines the term "composition" in OOP?
A) A class inheriting from multiple classes.
B) A class containing references to other classes.
C) A class that cannot be subclassed.
D) A class defining only abstract methods.
Answer: B) A class containing references to other classes.
Explanation: Composition is a design principle in OOP where a class contains references to one or more objects of other classes as part of its state. This allows for building complex types by combining simpler ones, promoting reusability and flexibility. It contrasts with inheritance, where a class derives from another class.