Overriding Methods

AP Computer Science A· difficulty 4/5

A subclass can change inherited behavior by

  • A

    Overriding the method

    check_circle
  • B

    Cannot change

  • C

    Removing the method

  • D

    Renaming the method

Explanation

Override (not replace) provides new behavior in subclass.

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

Related questions