def p(m)
msgbox(m)
end
class A
def initialize(name,age)
@name = name
@age = age
end
def name
@name
end
def age
@age
end
def name=(new_name)
@name = new_name
end
def age=(new_age)
@age = new_age
end
end
a = A.new('RC','⑨')
p a.name
p a.age
a.name = 'dora'
a.age = 12
p a.name
p a.age
def p(m)
msgbox(m)
end
class A
def initialize(name,age)
@name = name
@age = age
end
def name
@name
end
def age
@age
end
def name=(new_name)
@name = new_name
end
def age=(new_age)
@age = new_age
end
end
a = A.new('RC','⑨')
p a.name
p a.age
a.name = 'dora'
a.age = 12
p a.name
p a.age