Multiple choice

Which Component method is used to access a component's immediate Container?

  1. getVisible()

  2. getImmediate()

  3. getParent()

  4. getContainer()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The getParent() method in the Component class returns the immediate parent Container. This allows navigation up the component hierarchy from child to parent.