We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Description
With inerhit you can bequeath a class.
Syntax
inherit(Class[, what = {}])
Example
Basisclass = {} function Basisclass:test() print("hello") end function Basisclass:testZwei() print("hello two") end Class = inherit(Basisclass) function Class:test() print("derived class") end local instance = new(Class) instance:test() -- "derived class" instance:testZwei() -- "hello two"