Creating Superclasses and Subclasses

AP Computer Science A· difficulty 3/5

A subclass calls an inherited public method

  • A

    Only with super.method()

  • B

    Only with this.method()

  • C

    Without this/super (just method name)

    check_circle
  • D

    Cannot call

Explanation

Direct call works; this.method() also works.

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

Related questions