Polymorphism

AP Computer Science A· difficulty 4/5

Polymorphism enables

  • A

    Smaller bytecode

  • B

    Generic code that handles any subclass through superclass references

    check_circle
  • C

    Direct memory access

  • D

    Faster code

Explanation

Write code against an interface/superclass; it works for all current and future subclasses.

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

Related questions