Answer Posted / devi
The above ans is also right.
->Friend function is the one that can access the private
data members of the same class and other class which it is
made as friend.
->The advantageous of friend function that function not called
by object of the class.
->That means without using object name and dot operator that call the friend function.It
can define private area and public area.
->The friend function define outside the class without using
the class name and scope resolution operator.
| Is This Answer Correct ? | 16 Yes | 7 No |
Post New Answer View All Answers
What is the difference between abstraction and polymorphism?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is multilevel inheritance explain with example?
Which is better struts or spring?
to find out the minimum of two integer number of two different classes using friend function
Get me an image implementation program.
How do you answer polymorphism?
What does enum stand for?
hi all..i want to know oops concepts clearly can any1 explain??
Is this job good for future? can do this job post grduate student?
What do you mean by overloading?
Can destructor be overloaded?
What is polymorphism give a real life example?
What are the three parts of a simple empty class?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?