Overriding Methods

AP Computer Science A· difficulty 4/5

An overriding method's return type

  • A

    Can be a subtype (covariant returns)

    check_circle
  • B

    Must be exactly the same

  • C

    Must be different

  • D

    Must be void

Explanation

Java permits covariant return types.

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

Related questions