[racket] protected (semi-private) fields

From: Razvan Rotaru (roti_343 at yahoo.com)
Date: Wed Jun 1 15:40:35 EDT 2011

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>

Posted on the users mailing list.