Polymorphism

AP Computer Science A· difficulty 4/5

With reference type Animal, you can call only

  • A

    Only abstract methods

  • B

    Methods declared in Animal (or its superclasses)

    check_circle
  • C

    Static methods only

  • D

    Any method of any subclass

Explanation

Compile-time visibility based on declared type.

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

Related questions

AP Computer Science A · Polymorphism Practice Question | Acemy