super Keyword

AP Computer Science A· difficulty 4/5

To access a hidden parent field in subclass:

  • A

    this.field

  • B

    Cannot access

  • C

    super.field

    check_circle
  • D

    Class.field

Explanation

<code>super.field</code> reaches up to the parent.

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

Related questions