You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JonathanOrr edited this page Aug 26, 2023
·
3 revisions
Different types of accessibility
public The type or member can be accessed by any other code. The accessibility level of public members of a type is controlled by the accessibility level of the type itself. private The type or member can be accessed only by code in the same class or struct.
Caller's location
public
private
Within the class
✔️️
✔️️
Derived class
✔️️
❌
Non-derived class
✔️️
❌
Inheritance
Lua is not an OO language. To simplify the logic and ensure performance, all members regardless of accessibility are inherited by default (unless the static keyword is used).