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
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What are the 3 pillars of oop?
What is the benefit of oop?
What is constructor in oop?
What is overloading in oops?
Can abstract class have normal methods?
Why is destructor used?
Why do we use inheritance?
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
What is encapsulation with real life example?
What is abstraction and encapsulation?
can we make game by using c
What does enum stand for?
What is inheritance in oop?
What is a class and object?