Creating Superclasses and Subclasses

AP Computer Science A· difficulty 4/5

<code>protected</code> access in Java means

  • A

    Private to instance

  • B

    Same package only

  • C

    Subclasses (anywhere) and same package

    check_circle
  • D

    Public to all

Explanation

Protected: package-private + accessible to subclasses.

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

Related questions