English

Explain any two types of access specifiers. - Computer Applications

Advertisements
Advertisements

Question

Explain any two types of access specifiers. 

Short Answer

Solution

  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.

  Is there an error in this question or solution?
Chapter 6: Class as the Basis of all Computation (Objects and Classes) - EXERCISES [Page 384]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 6 Class as the Basis of all Computation (Objects and Classes)
EXERCISES | Q IV. 9. | Page 384
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×