What is a friend function & its advantage?
Answer / kishor khatri
A friend function is a non member function of a class, that
is declared as a friend using the keyword "friend" inside
the class. By declaring a function as a friend, all the
access permissions are given to the function. It is like
allowing access to ones personal belongings to a friend.
| Is This Answer Correct ? | 3 Yes | 1 No |
Whats is abstraction in oops?
how to swap to variables without using thrid variable in java?
What is polymorphism what are the different types of polymorphism?
what is the 3 types of system development life cycle
wht is major diff b/w c and c++?
what are the different types of qualifier in java?
i^=j; j^=i; i^=j; value of i,j
WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??
21 Answers Biocon, MIT, NIIT,
1. Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)
JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?
Why is oop useful?
design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }