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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a C++ program for booking using constructor and destructor.

2585


What is super in oop?

1255


What are the three parts of a simple empty class?

2095


What are functions in oop?

1119


What is abstraction in oops with example?

1349


How to use CMutex, CSemaphore in VC++ MFC

4835


What is an example of genetic polymorphism?

1240


What is pure oop?

1164


What is multilevel inheritance?

1255


Is oop better than procedural?

1086


What is abstraction oop?

1145


What do you mean by Encapsulation?

1136


how to get the oracle certification? send me the answer

2203


Why do we use class?

1146


Give two or more real cenario of virtual function and vertual object

2362