C++ example with and without friend function

C++ example with a program with friend function
C++ example with a program with friend function

C++ Program without friend function

C++ Program with friend function

How Friend function Can access private, protected, and public members of a class 

 

 

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.