Answer Posted / vigneswari
FRIEND FUNCTION IS USED TO ACCESS THE DATAMEMBERS,MEMBER
FUNCTION DECLARED UNDER PRIVATE(access
specifier)...normaly we canot access the members under
private for the whole program.......BUT USING THIS
FRIENDFUNCTION WE CAN ACCESS THE FUNCTION UNDER
PRIVATE................BEST WISHES TO B A GUD
PROGRAMMER...ALL THE BEST
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
How to improve object oriented design skills?
Why is destructor used?
i got a backdoor offer in process global,Bangalore..Can i work with it?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why is polymorphism needed?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is abstraction example?
What is oops with example?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is abstract class in oop?
What is encapsulation with real life example?
What is a class oop?
Why is oop better than procedural?
What is the difference between static polymorphism and dynamic polymorphism?