The blog consist sources of object oriented languages.Such as concepts of c++,java,C# .Blog enhances your programming skills from your first step to a known developer.
Search This Blog
Sunday, 15 September 2013
Concept of Friend Function in C++
Friend Function of C++
#include<iostream.h> #include<conio.h>
class fri { int a,b; public: void input(int x,int y) { a=x; b=y; } friend int add(fri t) { int sum; sum=(t.a+t.b); cout<<"Sum is:"<<sum; } };
No comments:
Post a Comment