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 are objects in oop?

604


What is class in oop with example?

610


What is the renewal class?

2161


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?

1403


Who invented oop?

647






What is constructor overloading in oop?

599


What is the difference between abstraction and polymorphism?

606


Give two or more real cenario of virtual function and vertual object

1849


What are the benefits of interface?

571


What is the difference between a constructor and a destructor?

607


What is the difference between inheritance and polymorphism?

583


What is polymorphism give a real life example?

557


How do you define social class?

594


What polymorphism means?

616


What are the two different types of polymorphism?

666