What is a pure virtual function?
Why is it represented as = 0...how is the internal
implementation for the same
Answer Posted / helloworld
I believe pure virtual function is a member function with a
declaration as NULL;
virtual void fun()=0;
Now why zero,since the internal implementation of virtual
function is collection of function pointer ...we intialize
this value of function pointers as NULL.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is an associative container in c++?
What is #include math h in c++?
What are static variables?
What is input operator in c++?
How to implement is-a and has-a class relationships?
Is c# written in c++?
What is meant by entry controlled loop?
What should main() return in c and c++?
Can char be a number c++?
Is vector a class in c++?
What does it mean to declare a member variable as static?
Define 'std'.
What is pointer to array in c++?
You want to link a c++ program to c functions. How would you do it?
How static variables and local variablesare similar and dissimilar?