ICSE Class 10 Computer Applications Question 15 of 16

Encapsulation and Inheritance — Question 5

Back to all questions
5
Question

Question 5

A member variable declared with no access specifier has visibility in ............... .

  1. Class and package only
  2. Class, package and subclass only
  3. Class and subclass only
  4. Class only
Answer

Class and package only

Reason — A member variable declared with no access specifier has visibility in the same class and other classes of the same package only.