diff --git a/collects/scribblings/guide/class.scrbl b/collects/scribblings/guide/class.scrbl index f79b425057..ed3d12f82e 100644 --- a/collects/scribblings/guide/class.scrbl +++ b/collects/scribblings/guide/class.scrbl @@ -348,6 +348,13 @@ and makes the overriding implementation augmentable. @section[#:tag "extnames"]{Controlling the Scope of External Names} +@margin-note{ + Java's access control mechanisms (like @index["protected method"]{protected}) + play a role similar to @racket[define-member-name], but + unlike in Java, Racket's mechanism for controlling access + is based on lexical scope, not the inheritance hierarchy. +} + As noted in @secref["intnames"], class members have both internal and external names. A member definition binds an internal name locally, and this binding can be locally renamed. External