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
Tell me what are the __construct() and __destruct() methods in a php class?
What are sql injections, how do you prevent them and what are the best practices?
When a conditional statement is ended with an endif?
List types of array are available in php?
How big is nvarchar max?
What is class extend in php?
Explain the difference between $var and $$var?
Why do we use htaccess and where?
What is the difference between php and cakephp?
What are some new features introduced in php7?
What is the difference between get and post method in php?
Explain the types of string comparision function in PHP
Which function parses an English textual date or time into Unix timestamp in PHP.
What is the use of "enctype" attribute in a html form?
What are the difference between abstract class and interface in oops?