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?
Static function
Friend function
Const function
Virtual function
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
42 comments Page 1 of 5.

Nandita Pandey said:   8 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.
(7)

Swastik said:   7 years ago
You declare function as a friend inside class but it is not considered as member function of the class.
(4)

Ahmad said:   10 years ago
Without Virtual function can we dynamic binding?
(4)

Smarak said:   1 decade ago
What is const function?
(1)

Muhammad Abdul Khaliq said:   9 years ago
Static Function Can Be The Past of Class?
(1)

Chetan said:   10 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.
(1)

Priyanka Patil said:   1 decade ago
What is friend function?
(1)

Mych5 said:   1 decade 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?

Goldy said:   5 years ago
Is it possible to modify a private data member of a class through a non-member function? If yes means How? Explain.


Post your comments here:

Your comments will be displayed after verification.