Closed epatrizio closed 2 months ago
Object-oriented programming is not part of Lua language, but it is possible thanks to the power of tables and closures. Here is a basic example. For more detailed information and examples: (which requires the use of metatable) https://www.lua.org/pil/16.html https://www.tutorialspoint.com/lua/lua_object_oriented.htm
Object-oriented programming is not part of Lua language, but it is possible thanks to the power of tables and closures. Here is a basic example. For more detailed information and examples: (which requires the use of metatable) https://www.lua.org/pil/16.html https://www.tutorialspoint.com/lua/lua_object_oriented.htm