@@ -1131,8 +1131,8 @@ A class member variable can be declared static::
1131
1131
Static variables belong to the class or trait, not instances. This means that static variables
1132
1132
share values between multiple instances, unlike regular member variables.
1133
1133
1134
- From inside a class/ trait, you can access static variables from any function, both static and non-static.
1135
- From outside the class/ trait, you can access static variables using the class/trait or an instance
1134
+ From inside a class or trait, you can access static variables from any function, both static and non-static.
1135
+ From outside the class or trait, you can access static variables using the class/trait or an instance
1136
1136
(the second is not recommended as it is less readable).
1137
1137
1138
1138
.. note ::
@@ -1983,11 +1983,7 @@ A class (stored as a file) can inherit from:
1983
1983
1984
1984
Multiple inheritance is not allowed.
1985
1985
1986
- .. note ::
1987
- Godot 4.x introduces `traits <Traits _>`_ to GDScript, which may cover many of
1988
- the use cases for multiple inheritance. See their section for more information
1989
- about how they work.
1990
-
1986
+ Multiple inheritance is not allowed, but Godot does support `traits <Traits _>`_, which cover many of the same use cases.
1991
1987
Inheritance uses the ``extends `` keyword::
1992
1988
1993
1989
# Inherit/extend a globally available class.
@@ -2180,7 +2176,8 @@ class resource is done by calling the ``new`` function on the class object::
2180
2176
Traits
2181
2177
------
2182
2178
2183
- Traits are collections of behaviors and attributes that classes can use to guarantee
2179
+ Since Godot 4.x, GDScript supports traits, which are collections of behaviors and attributes
2180
+ that classes can use to guarantee
2184
2181
functionality to themselves and other objects that may be attempting to use them.
2185
2182
2186
2183
Like classes, by default all ``.gdt `` files are unnamed traits, and you must reference
0 commit comments