+ 1
How to acces friend function
how to access friend function for an object created with pointer method Classname *object = new Classname(); becoz object->friendfunction(obj); not working.. 😓
12 Respostas
+ 3
just one more question
do I have to initialize the overloaded function also as a friend function seperately
+ 3
Ina thanks 😊
+ 2
A friend function DONT belong to class then you cannot call it like object member notation
+ 2
Ina but still i need to access friendfunction for the created object so it performs it's operation
+ 2
https://code.sololearn.com/cuQVWU8NWKn6/?ref=app
here i have shown the problem
+ 2
Ina thank you that's exactly I wanted
+ 1
KrOW then can i access friend function?
+ 1
Omkar Tripathi Its the friend function that can access to object like Ina suggested you... Why you dont post a extract of your code for make us understand your problem?