Computer Applications

State which access specifier is less restrictive.

State which access specifier is less restrictive. Computer Application Competency Focused Practice Questions Class 10 Solutions.
  1. private
  2. protected
  3. default
  4. public

Encapsulation & Inheritance in Java

2 Likes

Answer

public

Reason — The public access specifier is the least restrictive because it allows access to the class members from any other class, anywhere in the program.

Answered By

2 Likes


Related Questions