can anyone tell me the merits & demerits of friend functions?
p.s. help me
kushal
Kushal Thakkar
0
Newbie Poster
Recommended Answers
Jump to Postthe only time i can think of using friend functions is for operator overloading.. the rest of the time they should be avoided because they violate OOP data encapsulation.
Jump to Post>the rest of the time they should be avoided because they violate OOP data encapsulation.
If this is what you think, then you're not in a position to help. Those who still need to learn shouldn't be teaching.
Jump to PostUh. Follow the links posted already in the thread? (Try not to be an unthinking idiot who is not inclined to read the replies already posted here.)
All 9 Replies
Clinton Portis
211
Practically a Posting Shark
Narue
5,707
Bad Cop
Team Colleague
Bench
212
Posting Pro
SpS
34
Posting Pro
Kushal Thakkar
0
Newbie Poster
supriya kalekar
0
Newbie Poster
himanshu shekha
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
Dave Sinkula
2,398
long time no c
Team Colleague
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.