public protected private in python code example
Example: python protected attributes
class example:
def __init__(self):
self._variable1='protected variale'
self.__variable2='private variable'
self.variable3='public variable'
class example:
def __init__(self):
self._variable1='protected variale'
self.__variable2='private variable'
self.variable3='public variable'