Object-Oriented Programming (OOP)

In computer science, Composition over inheritance refers to which of the following?

Correct answer

A. A design guideline suggesting that building complex behavior by combining objects is often preferable to relying solely on class inheritance.

Explanation

Composition over inheritance refers to a design guideline suggesting that building complex behavior by combining objects is often preferable to relying solely on class inheritance.