+ 2
Is there friend function concept in Python...?
If it's there please provide the syntax, reference link. Thank you
4 Answers
+ 4
There is no privacy in Python. Everyone can access anything anyway.
So there's no need for a friend function sort of concept.
+ 3
I don't think there was in Python, but it was present in C++.
+ 3
What is a friend function?
I know friend classes...but functions đ€
+ 1
Oma Falk friend function of a class can access it's data just like if it was defined as a member function itself