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 4 of 5.
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.
Mych5 said:
10 years ago
What is static function and where they are applicable?
(1)
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.
Ahmad said:
9 years ago
Without Virtual function can we dynamic binding?
(3)
Muhammad Abdul Khaliq said:
8 years ago
Static Function Can Be The Past of Class?
(1)
Nandita Pandey said:
7 years ago
Since friend functions are used by the methods that want to access the private data members of a class. They are only declared in the class and defined outside the class hence, they are not the members of a class.
(6)
PIYUSH said:
6 years ago
Yes, correct @Nandita. Thanks.
Swastik said:
6 years ago
You declare function as a friend inside class but it is not considered as member function of the class.
(4)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers