ALLInterview.com :: Home Page KalAajKal.com
 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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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 friend function?
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is friend function?
Answer
# 1
It is a non-member function, but having access to class 
members.
 
Is This Answer Correct ?    3 Yes 0 No
P Suresh Kumar
 
  Re: What is friend function?
Answer
# 2
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 ?    1 Yes 0 No
Lakshmi.t
 
 
 
  Re: What is friend function?
Answer
# 3
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 ?    3 Yes 0 No
Kumarasamy
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
what is an instance of a class  2
What is a mixin class?  3
What is Iteration Hierarchy? What is what is Object behavioral concept?  1
What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required  5
How is exception handling carried out in c++?  1
what are the disadvantages of C++? ATS4
What is command routing in MFC GE1
What is the Advantage of Interface over the Inheritance in OOPS?  2
polymorphism means? BFL2
wht is major diff b/w c and c++?  3
Which is the only operator in C++ which can be overloaded but NOT inherited?  3
why c++ is called OOPS? waht is inherutance? what is compiler?  2
features of OOPS Ness-Technologies5
What is extreme programming?  2
why we call c++ is object oriented lanaguage HCL2
What are the main differences between procedure oriented languages and object oriented languages?  4
Why and when is a virtual destructor needed?  2
Describe the difference between a Thread and a Process?  6
Why many objects can working together? How objects working togetherM I want to see example code.  2
why destructor is not over loaded?  2
 
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 © 2007  ALLInterview.com.  All Rights Reserved.

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