What is friend function?

Answer Posted / aravinth.p

its is a non member function,which is used to access the
private data members of a class...

it is declared inside the class by the keyword : FRIEND

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class and object?

600


What is class and example?

569


How do you achieve polymorphism?

618


What is the types of inheritance?

604


What do you mean by Encapsulation?

645






What is abstraction with example?

609


What is difference between inheritance and polymorphism?

576


What is difference between multiple inheritance and multilevel inheritance?

604


What is a null tree?

632


What do you mean by variable?

578


How do you answer polymorphism?

580


What are functions in oop?

586


What is object in oop?

688


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6489


What is the diamond problem in inheritance?

580