What is friend function?

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


Please Help Members By Posting Answers For Below Questions

What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2193


What are the 3 pillars of oop?

727


What is the benefit of oop?

648


What is constructor in oop?

691


What is overloading in oops?

703






Can abstract class have normal methods?

684


Why is destructor used?

678


Why do we use inheritance?

716


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1749


What is encapsulation with real life example?

679


What is abstraction and encapsulation?

662


can we make game by using c

3567


What does enum stand for?

705


What is inheritance in oop?

682


What is a class and object?

688