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 |
Can static class have constructor?
What is the use of oops?
how to swap to variables without using thrid variable in java?
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
What is new keyword in oops?
What is encapsulation selenium?
What is the use of fflush(stdin) in c++?
What is R T T I ?
wht is ditch
What is ambiguity in c++
what is cast operator?
In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance