मराठी

Which of the following keywords are used to control access to a class member? - Computer Applications

Advertisements
Advertisements

प्रश्न

Which of the following keywords are used to control access to a class member? 

पर्याय

  • Default

  • Abstraction

  • Protected

  • Interface

MCQ

उत्तर

Protected

Explanation:

Protected is an access specifier that controls a class member's visibility. It enables members to be accessed within the class, inherited (sub) classes, and even within the same package (in languages like Java). 

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 6: Class as the Basis of all Computation (Objects and Classes) - EXERCISES [पृष्ठ ३८२]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 6 Class as the Basis of all Computation (Objects and Classes)
EXERCISES | Q I. 5. | पृष्ठ ३८२
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×