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:
“To say that a man is your Friend, means commonly no more than this, that he is not your enemy. Most contemplate only what would be the accidental and trifling advantages of Friendship, as that the Friend can assist in time of need by his substance, or his influence, or his counsel.... Even the utmost goodwill and harmony and practical kindness are not sufficient for Friendship, for Friends do not live in harmony merely, as some say, but in melody.”
—Henry David Thoreau (18171862)
“Men hear gladly of the power of blood or race. Every body likes to know that his advantages cannot be attributed to air, soil, sea, or to local wealth, as mines and quarries, nor to laws and traditions, nor to fortune, but to superior brain, as it makes the praise more personal to him.”
—Ralph Waldo Emerson (18031882)
“Do not forsake your friend or the friend of your parent; do not go to the house of your kindred in the day of your calamity. Better is a neighbor who is nearby than kindred who are far away.”
—Bible: Hebrew, Proverbs 27:10.
“A poet is no rattlebrain, saying what comes uppermost, and, because he says every thing, saying, at last, something good; but a heart in unison with his time and country. There is nothing whimsical or fantastic in his production, but sweet and sad earnest, freighted with the weightiest convictions, and pointed with the most determined aim which any man or class knows of in his times.”
—Ralph Waldo Emerson (18031882)