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
d) Placing a declaration of one class prior to the definition of the other.

Computer Science & Information Technology

You might also like to view...

This standard defines the six subsystems of a structured cabling system

What will be an ideal response?

Computer Science & Information Technology

Known as multitasking, a single processor can actually do more than one thing at a time

Indicate whether the statement is true or false

Computer Science & Information Technology

The most common type of network card is

A) Ethernet B) Token Ring C) ARCnet D) All of these are common network cards.

Computer Science & Information Technology

You can save a slide as a PNG or JPEG file.

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

Computer Science & Information Technology