Single Choice Moderate

QThe access modifier that gives least accessibility is:

ID: #23970 ICSE Computer Application - Class X - 2022 PYQ 64 views
Question Info
#23970Q ID
ModerateDifficulty
ICSE Computer Application - Class X - 2022 PYQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A private
  • B public
  • C protected
  • D package
Correct Answer

Explanation

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.

Share This Question

Challenge a friend or share with your study group.