Python Institute PCPP1 – Certified Professional in Python Programming 1 PCPP-32-101 Question # 5 Topic 1 Discussion

Python Institute PCPP1 – Certified Professional in Python Programming 1 PCPP-32-101 Question # 5 Topic 1 Discussion

PCPP-32-101 Exam Topic 1 Question 5 Discussion:
Question #: 5
Topic #: 1

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.


Get Premium PCPP-32-101 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.