摘要:
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... 阅读全文