Lua Programming/How to Lua/classlib

From Wikibooks, open books for an open world
< Lua Programming‎ | How to Lua
Jump to: navigation, search

Including the class library [edit]

It is necessary to include the class library using a require statement. before the library facilities can be utilized:

require("class")

Defining a class [edit]

Creating an object [edit]