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
An open class typically comes with some documentation that describes
27
28
the internal calling patterns between methods of the class as well as hooks that can be overridden. We call this the _extension contract_ of the class. It is different from the _external contract_ between a class and its users.
28
29
29
-
Classes that are not open can still be extended, but only if one of two alternative conditions hold:
30
+
Classes that are not open can still be extended, but only if at least one of two alternative conditions is met:
30
31
31
32
- The extending class is in the same source file as the extended class. In this case, the extension is usually an internal implementation matter.
0 commit comments