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:

    “The respect for human rights is one of the most significant advantages of a free and democratic nation in the peaceful struggle for influence, and we should use this good weapon as effectively as possible.”
    —Jimmy Carter (James Earl Carter, Jr.)

    “For, the advantages which fashion values, are plants which thrive in very confined localities, in a few streets, namely. Out of this precinct, they go for nothing; are of no use in the farm, in the forest, in the market, in war, in the nuptial society, in the literary or scientific circle, at sea, in friendship, in the heaven of thought or virtue.”
    —Ralph Waldo Emerson (1803–1882)

    “When a friend calls to me from the road
    And slows his horse to a meaning walk,
    I don’t stand still and look around
    On all the hills I haven’t hoed....”
    —Robert Frost (1874–1963)

    “There is a certain class of unbelievers who sometimes ask me such questions as, if I think that I can live on vegetable food alone; and to strike at the root of the matter at once,—for the root is faith,—I am accustomed to answer such, that I can live on board nails. If they cannot understand that, they cannot understand much that I have to say.”
    —Henry David Thoreau (1817–1862)