lua流水帐4:面向对象

1.类的示例:php Account = { balance = 0; --self至关于this withdraw = function(self,v) print("this is withdraw"); self.balance = self.balance - v; end } --使用:能够隐藏self function Account:d
相关文章
相关标签/搜索