What is friend function?

Answer Posted / aravinth.p

its is a non member function,which is used to access the
private data members of a class...

it is declared inside the class by the keyword : FRIEND

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6354


What is the main feature of oop?

892


What is the difference between a mixin and inheritance?

731


What is ambiguity in inheritance?

836


What is the real life example of polymorphism?

843


What is constructor in oop?

814


What does sksksk mean in text slang?

1830


Why do we need oop?

863


What is pointer in oop?

721


What is encapsulation in oop?

776


Which type does string inherit from?

826


any one please tell me the purpose of operator overloading

2157


What is the difference between procedural programming and oops?

766


Which language is not a true object oriented programming language?

864


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

1871