मराठी

Explain any two types of access specifiers. - Computer Applications

Advertisements
Advertisements

प्रश्न

Explain any two types of access specifiers. 

लघु उत्तर

उत्तर

  1. Public: Accessible from all classrooms.
  2. Private: Only available within the class in which it is declared.
  3. Protected: Classes and their inherited subclasses can access them.
  4. When no access specifier is given, the default access is limited to classes inside the same package.  
shaalaa.com

Notes

Students should refer to the answer according to their questions.

  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 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 IV. 9. | पृष्ठ ३८४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×