Answer Posted / mital
A friend function is used in object-oriented programming to
allow access to private or protected data in a class from
outside the class. Normally a function which is not a
member of a class cannot access such information; neither
can an external class. Occasionally such access will be
advantageous for the programmer; under these circumstances,
the function or external class can be declared as a friend
of the class using the friend keyword. The function or
external class will then have access to all information –
public, private, or protected – within the class.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is difference between abstraction and encapsulation?
How do you answer polymorphism?
any one please tell me the purpose of operator overloading
What is encapsulation c#?
What is the important feature of inheritance?
What is the benefit of oop?
What is polymorphism programming?
Get me a number puzzle game-program
What is encapsulation and abstraction? How are they implemented in C++?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
Who invented oop?
What is encapsulation process?
class type to basic type conversion
Where You Can Use Interface in your Project
What does it mean when someone says I oop?