Friend Class - Advantages of Using Friend Class

Advantages of Using Friend Class

  • It provides additional functionality which is kept outside the class.
  • It provides functions with data which is not normally used by the class.
  • It allows sharing private/protected class information by a non member function.

Read more about this topic:  Friend Class

Famous quotes containing the words advantages of, advantages, friend and/or class:

    ... there are no chains so galling as the chains of ignorance—no fetters so binding as those that bind the soul, and exclude it from the vast field of useful and scientific knowledge. O, had I received the advantages of early education, my ideas would, ere now, have expanded far and wide; but, alas! I possess nothing but moral capability—no teachings but the teachings of the Holy Spirit.
    Maria Stewart (1803–1879)

    If we live in the Nineteenth Century, why should we not enjoy the advantages which the Nineteenth Century offers? Why should our life be in any respect provincial?
    Henry David Thoreau (1817–1862)

    You have known your friend so long and loved him so much, and then all of a sudden you are so mad at him, you say, I could just kill you and you still like each other, because you have always been friends and you know in your mind you are going to be friends in a few seconds anyway.
    —Anonymous Twelve-Year-Old. As quoted in Children’s Friendships by Zick Rubin, ch. 3 (1980)

    The enemy are no match for us in a fair fight.... The young men ... of the upper class are kind-hearted, good-natured fellows, who are unfit as possible for the business they are in. They have courage but no endurance, enterprise, or energy. The lower class are cowardly, cunning, and lazy. The height of their ambition is to shoot a Yankee from some place of safety.
    Rutherford Birchard Hayes (1822–1893)