ICSE Class 10 Computer Applications Question 8 of 10

Solved 2022 Semester 2 Question Paper ICSE Class 10 Computer Applications — Question 8

Back to all questions
8
Question

Question 1(viii)

The access modifier that gives least accessibility is:

  1. private
  2. public
  3. protected
  4. package
Answer

private

Reason — A data member or member method declared as private is only accessible inside the class in which it is declared. Thus, it gives the least accessibility.