super Keyword

AP Computer Science A· difficulty 4/5

From subclass method, <code>super.method()</code> is used to

  • A

    Refer to outer class

  • B

    Static method call

  • C

    Reflection

  • D

    Call parent's method (e.g., extending behavior, not replacing)

    check_circle

Explanation

<code>@Override public void m() { super.m(); /* extra */ }</code> is a common pattern.

Want 10 more like this — adaptive to your weak spots?

Related questions