LUA 中最基本的結構是table,所以需要用table來描述對象的屬性。 ... 以下簡單的類包含了三個屬性: area, length 和breadth,printArea方法用於打印計算結果:
確定! 回上一頁