What is a friend function & its advantage?
Answer / 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 |
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Can private class be inherited?
What is difference between data abstraction and encapsulation?
Can we create object of class with private constructor?
what is a binary overloading
Can destructor be overloaded?
How to hide the base class functionality in Inheritance?
What is the main feature of oop?
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
Can we override main method?
what is function over loading?
What are functions in oop?