#Object orientated programming?

10 messages · Page 1 of 1 (latest)

terse igloo
#

I just learnt about object orientated programming and languagues (school uses java). How do I use lua like an object orientated language.

#

How do i declare classes and objects etc.

strong glade
#

metatables

#

its different in lua

terse igloo
#

Is metatables for attributes?

opal jungle
#

This is for specific issues we're not Google lol

pine wasp
#

For 99% of things it's not even needed. Traditional LUA OOP just sucks.

#

If you understand that Scripts, LocalScripts and ModuleScripts are objects in the game engine. Instantiating becomes pretty easy with :Clone()

but it is good to learn the meta tables as it has some reasonable methodology also.

opal jungle