In object-oriented programming, friend refers to a method or class that has access to some non-public aspects of a particular class.
In object-oriented programming, friend refers to a method or class that has access to some non-public aspects of a particular class.
Different programming languages use the friend
keyword differently. Make sure it is clear which language you are asking about.