+ 3

How to use friend function to two different classes

when I try to use friend function to two different classes in turbo c in c++ it's showing error what's the problem how can I use it . is it possible?

11th Jan 2017, 12:15 PM
Joseph Kishore Immandi
Joseph Kishore Immandi - avatar
3 odpowiedzi
+ 5
what's the error shown?
11th Jan 2017, 1:14 PM
Saumya
Saumya - avatar
+ 4
When using a friend function you need to pass the objects of the classes in the parameters.
13th Jan 2017, 7:36 AM
Saumya
Saumya - avatar
+ 2
I can't understand the problem but if two classes should use a friend function how plZzz help me
12th Jan 2017, 3:24 PM
Joseph Kishore Immandi
Joseph Kishore Immandi - avatar