If a class is declared a friend of another class, typically the classes refer to each other. The classes cannot each be defined before the other. To refer to a class, the class must have been declared. This is accomplished by a

a. Backward declaration
b. Forward declaration
c. Class definition
d. Placing a declaration of one class prior to the definition of the other.
e. None of the above. If the classes are not defined in the order grantor of friendship then friend class, this relationship is impossible.


Parts b) and d)
Explanation: Part d) is how “it” is done, and part b) is what “it” is called.

Computer Science & Information Technology

You might also like to view...

Sounds can be added only to ____.

A. scripts B. objects C. keyframes D. events

Computer Science & Information Technology

The AutoRecover feature in Excel does not allow the user to define the intervals for saving copies of files

Indicate whether the statement is true or false.

Computer Science & Information Technology

The Transport layer is the same in both the OSI model and the TCP/IP model.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

?_____,a principle of design, involves working with the focal point of a design.

A. ?Balance B. ?Rhythm C. ?Emphasis D. ?Unity

Computer Science & Information Technology