What does protected mean?

Ald aldarri_s at yahoo.com
Wed Jul 4 08:29:13 PDT 2007

I was writing a module with several classes, and found out that classes in the same module can access each other's private methods and even members.

Is this by design?  If so, then what is protected modifier for?  I have read the manual, but didn't understand the difference.

More information about the Digitalmars-d-learn mailing list