Skip to content

Commit 2a8b216

Browse files
committed
update section on class bodies for extends final
1 parent fe93ddb commit 2a8b216

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/codeql/ql-language-reference/types.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ The body of a class can contain:
135135
- Any number of :ref:`field <fields>` declarations.
136136

137137
When you define a class, that class also inherits all non-:ref:`private` member predicates and
138-
fields from its supertypes. You can :ref:`override <overriding-member-predicates>` those
139-
predicates and fields to give them a more specific definition.
138+
fields from its supertypes.
139+
You can :ref:`override <overriding-member-predicates>` or :ref:`shadow <final-extensions>` those
140+
predicates and fields (depending on whether they are final) to give them a more specific definition.
140141

141142
.. _characteristic-predicates:
142143

0 commit comments

Comments
 (0)