encapsulation issues for classes encapsulation is one of the cornerstones of oo how does it work in pythonas opposed to oo in +and javaall of the attributes defined for class are available to all in python so the language depends on programmer coopration if software requirementssuch as those imposed by code maintenance and code extension considerationsdictate that the class and instance variables be accessed only through get and set methods python class and python instance object are so open that they can be modified after the objects are brought into existence purdue university