In the context of OOP, what is "inheritance"?
A) The ability of a class to have multiple interfaces.
B) The mechanism by which one class can inherit properties and methods from another class.
C) The process of creating objects.
D) The technique for hiding data.
Answer: B) The mechanism by which one class can inherit properties and methods from another class.
Explanation: Inheritance is a fundamental OOP principle that allows one class (the subclass or derived class) to inherit properties (attributes) and methods (behaviors) from another class (the superclass or base class). This promotes code reuse and establishes a hierarchical relationship between classes.