What is best to describe the relationship between a container and a SWing GUI object in the container?

What is best to describe the relationship between a container and a SWing GUI object in the container?


A. Association
B. Aggregation
C. Composition
D. Inheritance

The correct answer is C


Explanation: A Swing GUI object can be only in one container.


Java

Learn More Multiple Choice Question :