最新评论

Cat Chen 2008-08-04 00:26
最后一个例子应该是这样吧:

class Person
attr_accessor :count
@@count2 = 0

def self.count2
@@count2
end

def self.count2=(value)
@@count2 = value
end
end

这样count2才是和C#代码对应,属于static的。
路西菲尔 2008-07-30 10:47
这个系列写的还不错,言简意赅,深入浅出
Nicholas Yuen 2008-07-30 10:29
谢谢。辛苦了。~
markup~
留恋星空 2008-07-30 08:56
辛苦。
Justin 2008-07-30 08:30
辛苦,支持一下