QuestionQ59

VerifiedAdvanced Object-Oriented Programming

Select the true statement about composition.

Explanation

Composition represents a has-a relationship in which a class contains objects from other classes, allowing it to serve as a container for instances of different classes. It can also be combined with inheritance.

Community Discussion

No comments yet. Be the first to start the discussion!