November 06, 2004
Hi there,
How can I access private data member of friend class on
different files, like in C++?


November 06, 2004
"aelmetwaly" <aelmetwaly@gawab.com> wrote in message news:cmj7qp$2h2u$1@digitaldaemon.com...
> Hi there,
> How can I access private data member of friend class on
> different files, like in C++?
>
>

if the files are in the same package you can use package protection instead of private. Private members are only visible in the module. See http://www.digitalmars.com/d/attribute.html for more info.


Top | Discussion index | About this forum | D home