ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
What is a friend function & its advantage?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is a friend function & its advantage?
Answer
# 1
A friend function is a non member function of a class, that
is declared as a friend using the keyword "friend" inside
the class. By declaring a function as a friend, all the
access permissions are given to the function. It is like
allowing access to ones personal belongings to a friend.
 
Is This Answer Correct ?    1 Yes 1 No
Kishor Khatri
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
Write a C++ program to conduct an election of a mayor.Declare a class ELECTION With the following specification: Data member: Name 25 character Age Integer symbol 1 character Member functions: To accept data for 20 contestant To accept symbol as voting from 100 voters. To declare the winner and the loser. Infotech1
Write a program in c++ to read two floating point numbers and find their sum and average.  2
how can we design a magic square in c++?or suggest me the basic idea of it.  3
Can we have a private constructor ? Ness-Technologies12
What does the keyword "static" mean? TCS4
When will a constructor executed? TCS5
what is difference between objects and function  1
Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3  2
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?  2
what is multithreading in c++ , what is difference between multithreading and singlethreading.  4
How do you make derived class as an abstract class? TCS1
monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree? IonIdea12
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com