摘要: 基于metatable可以实现OOP中继承相关的内容,如下代码所示。 --[[ Create a class "Animal" with properties:height,weight,name,sound and methods: new,getInfo,saySomething ]] -- D 阅读全文
posted @ 2024-05-04 21:12 ckxkexing 阅读(21) 评论(0) 推荐(0) 编辑