class : class
Creates a new class
with the given classData
table.
Default Syntax
local Class = class "Class" {
constructor = function(self)
...
end,
destructor = function(self)
...
end,
Public = {
...
},
Private = {
...
},
Protected = {
...
},
Friend = {
...
}
}
Without Syntax Sugar
local Class = class("Class")({
constructor = function(self)
...
end,
destructor = function(self)
...
end,
Public = {
...
},
Private = {
...
},
Protected = {
...
},
Friend = {
...
}
})