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
Why c++ is faster than java?
What does n mean in c++?
Why do we use vector in c++?
the first character in the variable name must be an a) special symbol b) number c) alphabet
What is near, far and huge pointers? How many bytes are occupied by them?
What is do..while loops structure?
What does I ++ mean in c++?
What are the advantages of early binding?
Explain the isa and hasa class relationships.
When is the destructor called?
Write a program to show polymorphism in C++?
What is the benefit of c++?
What is a node class in c++?
Can we overload operator in c++?
What are single and multiple inheritances in c++?