[racket] protected (semi-private) fields
Hi,
Question about classes in Racket: can I make fields which can be inherited by super-classes, but not accessible from outside the class? (like "protected" members in Java)
As I understand field and init-field declarations produce public fields (which can be accessed from outside the class), and define produces private fields (which can't be inherited).
Razvan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110601/7ba5205b/attachment.html>