super Keyword

AP Computer Science A· difficulty 4/5

Inside <code>Dog.speak()</code>, calling <code>super.speak()</code> reaches

  • A

    Dog's speak

  • B

    Object's speak

  • C

    Cannot call

  • D

    Animal's speak

    check_circle

Explanation

<code>super</code> references the parent class's version.

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

Related questions