C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 4)
4.
Which of the following is not the member of class?
Discussion:
42 comments Page 2 of 5.
Mahesh27 said:
1 decade ago
What is this pointer?
Saddam Hossain Mondal said:
1 decade ago
A function that has access to the private members of a class but is not itself a member of the class. An entire class can be a friend function of another class. A function that although not a member of a class is able to access the private members of that class.
Sabitha.r said:
10 years ago
Friend function is used in only public class.
N.SIVARAMAN said:
10 years ago
What is meant by Static function?
Thazaar said:
10 years ago
Friend function is used to access the private data member of a class. So it is not a member of a class.
JESWANTH KUMAAR.C.S.G said:
10 years ago
Because we don't have friend function in C++. We have only friend function and friend class in C++.
Abhishek chaudhary said:
10 years ago
If friend function will be the member function of the class then it can access private data member of the class without using friend function.
Priyanka Patil said:
9 years ago
What is friend function?
Chetan said:
9 years ago
A friend is a function, i.e. It's not member of the class but has access to private and protected members of the class.
PIYUSH said:
6 years ago
Yes, correct @Nandita. Thanks.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers