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 | ||||
---|---|---|---|---|
| ||||
Posted in reply to aelmetwaly | "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. |
Copyright © 1999-2021 by the D Language Foundation