Python uses getter, setter and deleter to the method to the attrinutye which is decorated as @property
Python allows to control the access of attribute using @property keyword. This is also called as attribute encapsulation.
Attribute that is decorated as @proptery uses a method name same as encapsulated atribute.
This methods are called atutomatically when the objects are trying to access or set value to such encapsulated attribute.
When a value is set to the property, attribute setter ios called.
When attribute is deleted using del, deleter is called.
Here the __empname is hidden to the objects and can be accessed using getter method. This shows the encapsulation concept of object oriented programming with Python.