Creating Superclasses and Subclasses

AP Computer Science A· difficulty 3/5

A subclass automatically inherits

  • A

    Private fields only

  • B

    Public/protected fields and methods (not constructors)

    check_circle
  • C

    Everything including constructors

  • D

    Just public methods

Explanation

Constructors are not inherited; private members are not directly accessible.

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

Related questions