class Person
def name
return @name
end
def name=(name)
@name = name
end
def hello
print "我是" + @name + ""
end
end
alex = Person.new
alex.name = "艾力克斯"
alex.hello
有没会RGSS的?给解释一下
def name
return @name
end
def name=(name)
@name = name
end
def hello
print "我是" + @name + ""
end
end
alex = Person.new
alex.name = "艾力克斯"
alex.hello
有没会RGSS的?给解释一下