Hello people,
I have two classes everyone with private data.
I want only one function from each class to access private data from another class. I have checked "friend" function but It needs the class object as an argument. That is making things complicated on my side and I have no idea on how to do this.
Is this possible? If yes, how can I archieve that?
Thanks alot
Stefano Mtangoo 455 Senior Poster
mitrmkar 1,056 Posting Virtuoso
Stefano Mtangoo 455 Senior Poster
mitrmkar 1,056 Posting Virtuoso
Stefano Mtangoo 455 Senior Poster
mitrmkar 1,056 Posting Virtuoso
Stefano Mtangoo 455 Senior Poster
mitrmkar 1,056 Posting Virtuoso
Stefano Mtangoo 455 Senior Poster
sheff_cc 0 Newbie Poster
mitrmkar 1,056 Posting Virtuoso
sheff_cc 0 Newbie Poster
mitrmkar 1,056 Posting Virtuoso
sheff_cc 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.