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 / kishor khatri

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 ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How oops is better than procedural?

1027


What are the types of abstraction?

996


Which language is pure oop?

941


What are two types of polymorphism?

1014


What is oops and its features?

1025


What do you mean by Encapsulation?

1022


What is destructor in oop?

987


Why polymorphism is used in oops?

994


What is abstract class in oops?

974


What is the difference between a constructor and a destructor?

1174


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

1170


What is static modifier?

1127


What is overriding vs overloading?

1005


What is static in oop?

1026


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

2096