class C(object):
def __init__(self, v):
self.value = v
def show(self):
print(self.value)
def getValue(self):
return self.value
def setValue(self, v):
self.value = v
c1 = C(10)
print(c1.getValue())
c1.setValue(20)
print(c1.getValue())
Y2xhc3MgQyhvYmplY3QpOgogICAgZGVmIF9faW5pdF9fKHNlbGYsIHYpOgogICAgICAgIHNlbGYudmFsdWUgPSB2CiAgICBkZWYgc2hvdyhzZWxmKToKICAgICAgICBwcmludChzZWxmLnZhbHVlKQogICAgZGVmIGdldFZhbHVlKHNlbGYpOgogICAgICAgIHJldHVybiBzZWxmLnZhbHVlCiAgICBkZWYgc2V0VmFsdWUoc2VsZiwgdik6CiAgICAgICAgc2VsZi52YWx1ZSA9IHYKYzEgPSBDKDEwKQpwcmludChjMS5nZXRWYWx1ZSgpKQpjMS5zZXRWYWx1ZSgyMCkKcHJpbnQoYzEuZ2V0VmFsdWUoKSk=