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:

    Each man must have his “I;” it is more necessary to him than bread; and if he does not find scope for it within the existing institutions he will be likely to make trouble.
    Charles Horton Cooley (1864–1929)

    Happy is that mother whose ability to help her children continues on from babyhood and manhood into maturity. Blessed is the son who need not leave his mother at the threshold of the world’s activities, but may always and everywhere have her blessing and her help. Thrice blessed are the son and the mother between whom there exists an association not only physical and affectional, but spiritual and intellectual, and broad and wise as is the scope of each being.
    Lydia Hoyt Farmer (1842–1903)

    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)