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
Is oop better than procedural?
what is difference between class template and template class?
What is the point of oop?
What are the components of marker interface?
What is the importance of oop?
Can private class be inherited?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What is pure oop?
Why do we need polymorphism in c#?
Why is static class not inherited?
class type to basic type conversion
What are main features of oop?
What is persistence in oop?
What is advantage of inheritance?
Get me an image implementation program.