What is friend function?

Answer Posted / shahzad

friend function defined outside a class. friend function is
used (OBJ)to allow to assess to private ,public the class
from the outside'normally a function not a member if class
and not assess information

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better struts or spring?

612


write a program that takes input in digits and display the result in words from 1 to 1000

1982


Why oops is important?

599


What is use of overloading?

602


How long to learn object oriented programming?

557






What is the real time example of encapsulation?

588


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1411


What is cohesion in oop?

614


What is overloading in oop?

570


Why is polymorphism used?

577


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(); }

1975


Is data hiding and abstraction same?

565


What is inheritance in simple words?

621


what is difference between class template and template class?

2153


What is the real time example of inheritance?

633