Skip to content

Other modifiers

JonathanOrr edited this page Aug 25, 2023 · 7 revisions

Combination table:

Modifiers readonly (field only) sealed (method only) static
readonly N/A ✔️
sealed N/A ✔️
static ✔️ ✔️ N/A

As Lua does not have strict type casting, abstract, virtual, and override keywords are unnecessary. Since overriding is not implemented, sealed simply prevents the hiding of any inherited fields, properties, and methods.

Clone this wiki locally