largest digit of two number using friend function in c++|| learn programing language

Опубликовано: 13 Июль 2026
на канале: learn programming language
169
4

largest digit of two number using friend function
largest digit of two number using friend function in c++
-------------------------------------------------------------------------------------
: FRIEND FUNCTION:
Friend Class A friend class can access private and protected members of other class in which it is declared as friend. It is sometimes useful to allow a particular class to access private members of other class. For example, a class may be allowed to access private members of Node.

A friend class can access both private and protected members of the class in which it has been declared as friend.
-------------------------------------------------------------------------------------