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 react oop?
Why is abstraction used?
What is encapsulation and abstraction? How are they implemented in C++?
What is interface in oop?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is polymorphism and its types?
Is data hiding and abstraction same?
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 the difference between a constructor and a destructor?
Can abstract class have normal methods?
What are constructors in oop?
What is constructor in oop?
What are the 4 pillars of oop?
which feature are not hold visual basic of oop?
What is abstraction encapsulation?