Computer Applications

This access specifier can be accessed only by the subclass in other package or any class within the same package.

  1. protected
  2. private
  3. public
  4. default

Encapsulation & Inheritance in Java

10 Likes

Answer

protected

Reason — protected access specifier can be accessed only by the subclass in other package or any class within the same package.

Answered By

6 Likes


Related Questions