Is there friend function concept in Python...? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Is there friend function concept in Python...?

If it's there please provide the syntax, reference link. Thank you

12th Jul 2020, 3:35 PM
malepu rakesh
malepu rakesh - avatar
4 ответов
+ 4
There is no privacy in Python. Everyone can access anything anyway. So there's no need for a friend function sort of concept.
12th Jul 2020, 9:40 PM
HonFu
HonFu - avatar
+ 3
I don't think there was in Python, but it was present in C++.
12th Jul 2020, 4:09 PM
James Clark I. Vinarao
James Clark I. Vinarao - avatar
+ 3
What is a friend function? I know friend classes...but functions 🤔
12th Jul 2020, 4:59 PM
Oma Falk
Oma Falk - avatar
+ 1
Oma Falk friend function of a class can access it's data just like if it was defined as a member function itself
20th Nov 2021, 12:52 AM
Rishi
Rishi - avatar