demonstrates the way to hide the attributes of class and method to access the hidden variables outside the class
class hiding():
# class attribute, "__" befor an attribute will make it to hide
__hideAttr = 10
def func(self):
self.__hideAttr += 1
print(self.__hideAttr)
a = hiding()
a.func()
a.func()
#AttributeError: 'hiding' object has no attribute '__hideAttr'
print (a.__hideAttr)