摘要: MyClass = { m_N = 0 } function MyClass:create() local o = {} setmetatable( o ,self) self.__index=self return oend function MyClass:SetN(n) self.m_N = nendSubClass = MyClass:create()SubClass.m_B = 30function SubClass:SetN(n) self.m_N = n*2 self.m_B = n*2end local a = MyClass:cre... 阅读全文
posted @ 2013-06-14 10:02 MrBlue 阅读(540) 评论(0) 推荐(0) 编辑