What does a “friend” do in obj c?

I am working on a project in which I created a class called Friend, and only noticed that Xcode colors it as a keyword or modifier. Can I use it, as in my code, or has a different purpose?

enter image description here

Updated: It seems that this has already been answered:

Why does the xcode IDE think that `friend` is a reserved word

But thanks for helping the guys!

+4
source share
2 answers

++ friend, . , ( ) . , class:

aClass;

, , - , . , , , .

+2

friend - , C++ .
Objective C C, ++, .

: ++

+1

Source: https://habr.com/ru/post/1533162/


All Articles