![]() |
notes and a sample program on freind function.
Hi all.:)
Here i m going to give imp. notes on friend functions.. description:-:crazy: we knon that private members cannot be accessed from outside the class.This means that a non member function cannot have access to the private data of a class. If we want to share the data ; in such situation C++ provide the use of friend function by which this problem can be solved. Below there is a sample program to show the use of friend function.... code: Code:
#include<iostream.h>please reply to share more knowledge..... have a good day.:) |
Re: notes and a sample program on freind function.
Nice....but try to use ANSI C standard code. Else even if the code is good, it wont qualify for Monthly Article Competitions. Moreover, it is always good to follow ANSI C Standards...
|
| All times are GMT +5.5. The time now is 18:39. |