在Lua 中,我们可以使用表和函数实现面向对象。 ... function Rectangle:printArea () print("The area of Rectangle is ",self.area) end ...
確定! 回上一頁