English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

How Python represents the private and protected Access specifiers?

Advertisements
Advertisements

Question

How Python represents the private and protected Access specifiers?

Short/Brief Note
Advertisements

Solution

Private members of a class are denied access from the outside of the class. They can be handled only within the class.
Protected members of a class are accessible from within the class and are also available to its sub-classes. No other process is permitted access to it.

shaalaa.com
Module
  Is there an error in this question or solution?
Chapter 3: Scoping - Evaluation [Page 29]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 3 Scoping
Evaluation | Q 5. | Page 29
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×