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


Please Help Members By Posting Answers For Below Questions

What is an associative container in c++?

542


What is #include math h in c++?

570


What are static variables?

615


What is input operator in c++?

581


How to implement is-a and has-a class relationships?

580






Is c# written in c++?

518


What is meant by entry controlled loop?

656


What should main() return in c and c++?

524


Can char be a number c++?

587


Is vector a class in c++?

592


What does it mean to declare a member variable as static?

608


Define 'std'.

602


What is pointer to array in c++?

613


You want to link a c++ program to c functions. How would you do it?

535


How static variables and local variablesare similar and dissimilar?

555