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 1 of 5.
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)
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)
Ahmad said:
9 years ago
Without Virtual function can we dynamic binding?
(3)
Smarak said:
1 decade ago
What is const function?
(1)
Muhammad Abdul Khaliq said:
8 years ago
Static Function Can Be The Past of Class?
(1)
Mych5 said:
10 years ago
What is static function and where they are applicable?
(1)
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?
Goldy said:
4 years ago
Is it possible to modify a private data member of a class through a non-member function? If yes means How? Explain.
Pooja said:
1 decade ago
What is the friend function?
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.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers