Friend Class - Scope

Scope

The class name which is introduced in the friend class declaration its scope is not in class granting friendship and also is not the member of the class granting access. If the name of the friend class is declared before the friend class declaration then the compiler searches for the class with the same name as the friend class at the scope of friend declaration. If the name of the friend class is same as that of the enclosing class which is nested then the nested class is a friend of enclosing class.

Read more about this topic:  Friend Class

Famous quotes containing the word scope:

    The scope of modern government in what it can and ought to accomplish for its people has been widened far beyond the principles laid down by the old “laissez faire” school of political rights, and the widening has met popular approval.
    William Howard Taft (1857–1930)

    Revolutions are notorious for allowing even non- participants—even women!—new scope for telling the truth since they are themselves such massive moments of truth, moments of such massive participation.
    Selma James (b. 1930)

    A country survives its legislation. That truth should not comfort the conservative nor depress the radical. For it means that public policy can enlarge its scope and increase its audacity, can try big experiments without trembling too much over the result. This nation could enter upon the most radical experiments and could afford to fail in them.
    Walter Lippmann (1889–1974)