Computer Applications

Post Office is an example for …………… access specifier.

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

Encapsulation & Inheritance in Java

8 Likes

Answer

public

Reason — A Post Office is accessible to everyone in a community, just like a public access specifier in programming, which allows members of a class to be accessible from any other class or part of the program. Hence, a Post Office is an example of public access specifier.

Answered By

4 Likes


Related Questions