d- encapsulation

Tomas Lindquist Olsen tomas at famolsen.dk
Tue Mar 13 10:18:04 PDT 2007


arun s wrote:

> i want to know how the encapsulation rules works in D.
> i have made a attribute as private in the class, but am able to access
> this attribute directly from the class instance...can any body give reason
> for this???

You should post some code for decent replies.



More information about the Digitalmars-d mailing list