In case of Friend classes, it is necessary to have a Forward Declaration of one of the Classes.

Options
- True
- False


CORRECT ANSWER : True

Discussion Board
C++ - Friend Function

Yes, the above statement is true. A class can also be declared to be the friend of some other class. When we create a friend class then all the member functions of the friend class also become the friend of the other class. This requires the condition that the friend becoming class must be forward declared.

Prajakta Pandit 01-27-2017 03:36 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement