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, 2004Re: <Novice> Friend Classes
Posted in reply to aelmetwaly
"aelmetwaly" <firstname.lastname@example.org> wrote in message news:email@example.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-2016 by the D Language Foundation