Sharing! What gained.

Jul 13, 2015

C++ Friends Function


One of the features of OOP is know as friends function ,I explain this to my students by giving the example ,That lets suppose that you have a friend to whom to tell your are private stuff like secrets and that friend does not belong to your family like he is your friend but not member of your family and you tell him whats happening in your personal life similarly friend function in not a member function of class but have the capability to use the private Datatypes members of class outside of the class such a function is known as friends function .It will be further cleared by looking at this example.




Share this Post!

0 comments:

Post a Comment