Skip to content

Commit c9e55b6

Browse files
committed
add note about the private property in class constructors
1 parent ef77e45 commit c9e55b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pages/ox_lib/Modules/Class/Shared.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ OxClass is a blueprint used for all classes created with `lib.class`. It provide
3333
- private?: `table`
3434
- A protected field which holds all private data in a class.
3535
- Private data cannot be accessed outside of class methods, enforcing security and data integrity.
36+
- Is always defined in the `constructor`, but must be explicitly defined if no private propertiees are set.
3637
- super?: `class`
3738
- A protected method referencing the constructor of a superclass.
3839
- Must be called inside a class constructor when instantiating a class.

0 commit comments

Comments
 (0)