Protected :
protected members of a class can be accessed by other members within
the class and are also available to their subclasses.
Add a prefix _ (single underscore)
Private :
The private members of a class are only accessible within the class.
In Python, a private member can be defined by using a prefix
__ (double underscore).
Protected :
protected members of a class can be accessed by other members within
the class and are also available to their subclasses.
Add a prefix _ (single underscore)
Private :
The private members of a class are only accessible within the class.
In Python, a private member can be defined by using a prefix
__ (double underscore).