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.
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.
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++.
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.
N.SIVARAMAN said:
10 years ago
What is meant by Static function?
Sabitha.r said:
10 years ago
Friend function is used in only public class.
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.
Mahesh27 said:
1 decade ago
What is this pointer?
Raj said:
1 decade ago
@Pooja.
Friend function can access the private & protected data of the parent class!
Normally, Other class couldn't able to access the private & protected data of a class.
Friend function can access the private & protected data of the parent class!
Normally, Other class couldn't able to access the private & protected data of a class.
Pooja said:
1 decade ago
What is the friend function?
Ashish ranjan shadangi said:
1 decade ago
pA = &oB; means pA contains the address of oB. And pA->show will definitely show the output as 2.
So what is the requirement of show as virtual function?
So what is the requirement of show as virtual function?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers