Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is friend function?

Answers were Sorted based on User's Feedback



What is friend function?..

Answer / p suresh kumar

It is a non-member function, but having access to class
members.

Is This Answer Correct ?    49 Yes 5 No

What is friend function?..

Answer / kumarasamy

it is nonmember function of class it can access the
private and protected members in the class, And it is
defined by a keyword frind.........

Is This Answer Correct ?    36 Yes 4 No

What is friend function?..

Answer / lakshmi.t

If a class B is derived from A, we can access the data and
member function of A.So in order to access a class data or
function from another class we have to derive the class.
but this can be done by declaring a class as 'friend' and
can access the another class functions and data.

Is This Answer Correct ?    26 Yes 8 No

What is friend function?..

Answer / karthi

it can access private and public member function

Is This Answer Correct ?    9 Yes 4 No

What is friend function?..

Answer / karthi

the friend function access basic class variables by using
dot operators.

Is This Answer Correct ?    7 Yes 2 No

What is friend function?..

Answer / mital

A friend function is used in object-oriented programming to
allow access to private or protected data in a class from
outside the class. Normally a function which is not a
member of a class cannot access such information; neither
can an external class. Occasionally such access will be
advantageous for the programmer; under these circumstances,
the function or external class can be declared as a friend
of the class using the friend keyword. The function or
external class will then have access to all information –
public, private, or protected – within the class.

Is This Answer Correct ?    5 Yes 2 No

What is friend function?..

Answer / nitish

If you are not the actual member of the class and want the
access over the functions involved in the class, then it can
be done through friend function.

An easy access to the data is provided through friend functions.

Is This Answer Correct ?    7 Yes 5 No

What is friend function?..

Answer / 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

What is friend function?..

Answer / 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

What is friend function?..

Answer / shahzad

friend function defined outside a class. friend function is
used (OBJ)to allow to assess to private ,public the class
from the outside'normally a function not a member if class
and not assess information

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is a class?

32 Answers   Infosys, TCS, Thylak,


oops concept is used for?

3 Answers   Synergy,


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

0 Answers  


What is the default size allocated for array in the statement if size not specified " int a[] "

4 Answers   CTS,


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

0 Answers   Accenture,


How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

0 Answers   IBM,


how do you handle yourself when you feel the wald is aganist you

2 Answers  


Precompilation ?

1 Answers   emc2,


What is abstraction and encapsulation?

0 Answers  


What is Hashing and how is it done? Pictorial form?

2 Answers   emc2, Wipro,


What is polymorphism what are the different types of polymorphism?

0 Answers  


What is Iteration Hierarchy? What is what is Object behavioral concept?

1 Answers  


Categories