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

Why c++ is faster than java?

592


What does n mean in c++?

630


Why do we use vector in c++?

598


the first character in the variable name must be an a) special symbol b) number c) alphabet

603


What is near, far and huge pointers? How many bytes are occupied by them?

658






What is do..while loops structure?

615


What does I ++ mean in c++?

583


What are the advantages of early binding?

608


Explain the isa and hasa class relationships.

589


When is the destructor called?

601


Write a program to show polymorphism in C++?

626


What is the benefit of c++?

595


What is a node class in c++?

642


Can we overload operator in c++?

546


What are single and multiple inheritances in c++?

574