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.

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.

Arati said:   4 years ago
I think static is correct.

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)

PIYUSH said:   6 years ago
Yes, correct @Nandita. Thanks.

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)

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

Ahmad said:   9 years ago
Without Virtual function can we dynamic binding?
(3)

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.

Priyanka Patil said:   9 years ago
What is friend function?

Mych5 said:   10 years ago
What is static function and where they are applicable?
(1)


Post your comments here:

Your comments will be displayed after verification.