Topics : Case studies | Consumer goods industry supply chain | Demand planning/management | Supply Chain Planning software | Supply chain software | Transportation Management Systems.
Give an example of friend classes in C++ and an example of when you would use one. In C++, the friend keyword can be applied to either a function or a class. A friend function or friend class has access to the private members of the class in which the declaration occurs. There are programmers who think that this feature violates the principles of object oriented programming because it allows a class to operate on another classâs private members.
A friend is someone who can put a finger on your faults without rubbing it in. A friend is someone who chooses you out of a whole world of people. A friend is someone who does things that count, but never stops to count them. A friend is a person who knows your sensitive spots but will never poke you there. A friend is a person who listens attentively while you say nothing. A friend is one of the nicest things you can have, and one of the best things you can be.