Analyze the following code:
class
Practice Classes and Objects – Analyze the following code:
class A:
def __init__(self):
self.x = 1
self.__y = 1
def getY(self):
return self.__y
a = A()
a.x = 45
print(a.x)