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?
Write a program to find the Factorial of a number
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What are the differences between new and malloc?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is virtual base class?
Which function cannot be overloaded c++?
What is c++ and its uses?
what are function pointers?
Do you know what is overriding?
What is #include sstream?
Show the declaration for a static function pointer.
How much do coding jobs pay?
Difference between strdup and strcpy?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack