Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок+ 3
Friend function possesses characteristics:
1. It's not in the scope of the class in which declared as friend 2.It can't be called using object of that class 3. It can be invoked like normal function with out help of class 4.it can't access the members names directly and has to use object name
1 ответ
+ 2
Thanks for sharing!