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.)

    A woman might claim to retain some of the child’s faculties, although very limited and defused, simply because she has not been encouraged to learn methods of thought and develop a disciplined mind. As long as education remains largely induction ignorance will retain these advantages over learning and it is time that women impudently put them to work.
    Germaine Greer (b. 1939)

    We have learned the simple truth, as Emerson said, that the only way to have a friend is to be one. We can gain no lasting peace if we approach it with suspicion or mistrust or with fear.
    Franklin D. Roosevelt (1882–1945)

    Planning ahead is a measure of class. The rich and even the middle class plan for future generations, but the poor can plan ahead only a few weeks or days.
    Gloria Steinem (b. 1934)