KnowledgeBoat Logo
|

Computer Applications

A member variable declared with a public access specifier has visibility in …………… .

  1. Class
  2. Package
  3. Subclass
  4. All of these

Encapsulation & Inheritance in Java

3 Likes

Answer

All of these

Reason — A member variable declared with a public access specifier has visibility in the class, its sub classes and the package as well.

Answered By

2 Likes


Related Questions