Python Programming - Encapsulation - Discussion

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

Post your comments here:

Your comments will be displayed after verification.