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" <email@example.com> wrote in message news:firstname.lastname@example.org... > 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-2017 by the D Language Foundation