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.


b) Forward declaration , and d) Placing a declaration of one class prior to the definition of the other.

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...

MC An optional XML__________ identifies a document as an XML document.

a) identification number. b) declaration. c) id element. d) None of the above.

Computer Science & Information Technology

What clause of the ISO 12207 standard outlines the measurement process?

A. 6.3.4 B. 6.3.5 C. 6.3.6 D. 6.3.7

Computer Science & Information Technology

The .gif image file format uses ____ file compression.

A. squeezy B. lossless C. lossy D. resizing

Computer Science & Information Technology

When you load a library, it is added or ____________________ to the current library of swatches at the bottom of the panel.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology