class C
def initialize(v)
@value = v
end
def show()
p @value
end
def getValue()
return @value
end
def setValue(v)
@value = v
end
end
c1 = C.new(10)
# p c1.value
p c1.getValue()
# c1.value = 20
c1.setValue(20)
p c1.getValue()
Y2xhc3MgQwogIGRlZiBpbml0aWFsaXplKHYpCiAgICBAdmFsdWUgPSB2CiAgZW5kCiAgZGVmIHNob3coKQogICAgcCBAdmFsdWUKICBlbmQKICBkZWYgZ2V0VmFsdWUoKQogICAgcmV0dXJuIEB2YWx1ZQogIGVuZAogIGRlZiBzZXRWYWx1ZSh2KQogICAgQHZhbHVlID0gdgogIGVuZAplbmQKYzEgPSBDLm5ldygxMCkKIyBwIGMxLnZhbHVlCnAgYzEuZ2V0VmFsdWUoKQojIGMxLnZhbHVlID0gMjAKYzEuc2V0VmFsdWUoMjApCnAgYzEuZ2V0VmFsdWUoKQ==