super Keyword

AP Computer Science A· difficulty 3/5

<code>super(arg)</code> calls

  • A

    Compile error

  • B

    A static method

  • C

    The current class's other constructor

  • D

    The parent class constructor

    check_circle

Explanation

Use <code>super(args)</code> as first statement of subclass constructor.

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

Related questions