Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

Lua OOP

-- assume the obj from last example
obj.hello = function () 
   print("Hello!")
end

obj.goodbye = function ()
   print("I must be going.")
end

obj.hello()
obj.goodbye()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Lua #OOP
ADD COMMENT
Topic
Name
6+5 =