View mode: basic / threaded / horizontal-split · Log in · Help
November 06, 2004
<Novice> Friend Classes
Hi there,
How can I access private data member of friend class on
different files, like in C++?
November 06, 2004
Re: <Novice> Friend Classes
"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