ruby oop学习
摘要:
class Man def initialize(name,age) @name=name @age=age end def sayName puts @name end def sayAge puts @age endendm=Man.new('tianen',213)m.sayAgem.sayNameclass Man def initialize(name,age) @name=name @age=age end def sayName ... 阅读全文
posted @ 2013-07-02 23:02 Ijavascript 阅读(185) 评论(0) 推荐(0) 编辑