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 3 of 5.

Ankita said:   1 decade ago
What is dynamic binding, static function, const function, virtual function?

Karthika said:   1 decade ago
What is dynamic binding, static function, const function, virtual 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?

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.

Mahesh27 said:   1 decade ago
What is this pointer?

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.

Sabitha.r said:   10 years ago
Friend function is used in only public class.

N.SIVARAMAN said:   10 years ago
What is meant by Static function?

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.


Post your comments here:

Your comments will be displayed after verification.