What is the use of friend function?

Answer Posted / ritu shekhwat.

..friend function is a special member function of the class.
..it is precided with the friend keyword.
..it is access the private data of the class.
..some situation where the private data of the one class
can require in another class we declare a function as a
friend.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the actually used php version?

518


Do I need to install php after xampp?

525


Write a program to show the joining of two strings in php?

520


What are php parameters?

516


What is data abstraction in php?

574






What is meant by MIME?

628


How to terminate the execution of a script in PHP?

563


Can we extend multiple classes in php?

534


Is key exist in array php?

530


Do you know what is the function func_num_args() used for?

556


Is false empty php?

544


What is session data?

536


How to convert numbers to strings in php?

515


What is the main difference between require() and include()?

476


What is the use of "enctype" attribute in a html form?

519