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 a friend function & its advantage?

Answer Posted / devi

The above ans is also right.
->Friend function is the one that can access the private
data members of the same class and other class which it is
made as friend.
->The advantageous of friend function that function not called
by object of the class.
->That means without using object name and dot operator that call the friend function.It
can define private area and public area.
->The friend function define outside the class without using
the class name and scope resolution operator.

Is This Answer Correct ?    16 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between abstraction and polymorphism?

1080


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

2579


What is multilevel inheritance explain with example?

1132


Which is better struts or spring?

1041


to find out the minimum of two integer number of two different classes using friend function

2115


Get me an image implementation program.

1971


How do you answer polymorphism?

1045


What does enum stand for?

1104


hi all..i want to know oops concepts clearly can any1 explain??

2117


Is this job good for future? can do this job post grduate student?

2148


What do you mean by overloading?

1059


Can destructor be overloaded?

1020


What is polymorphism give a real life example?

1024


What are the three parts of a simple empty class?

2037


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1614