Exit PCPP-32-101 PCPP - Certified Professional in Python Programming 1
Question 1 of 5
0% complete
Q1 Single choice

Select the true statement about composition

  • A

    Composition extends a class's capabilities by adding new components and modifying the existing ones.

  • B

    Composition allows a class to be projected as a container of different classes

  • C

    Composition is a concept that promotes code reusability while inheritance promotes encapsulation.

  • D

    Composition is based on the has a relation: so it cannot be used together with inheritance.

Previous Next