Use Cases
This approach may be used when a function needs to access private data in objects from two different classes. This may be accomplished in two similar ways
- a function of global or namespace scope may be declared as friend of both classes
- a member function of one class may be declared as friend of another one.
Read more about this topic: Friend Function
Famous quotes containing the word cases:
“And in cases where profound conviction has been wrought, the eloquent man is he who is no beautiful speaker, but who is inwardly drunk with a certain belief. It agitates and tears him, and perhaps almost bereaves him of the power of articulation.”
—Ralph Waldo Emerson (18031882)
“Lovers quarrels are not generally about money. Divorce cases generally are.”
—Mason Cooley (b. 1927)