Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 2)
2.
Which access specifier in Python is used to indicate that a variable or method should only be accessed within the same class?
Public
Private
Protected
Global
Answer: Option
Explanation:
Private access specifier in Python is denoted by a single underscore (_), and it indicates that the variable or method should only be accessed within the same class.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.