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 will happen if a pointer is deleted twice?
What is c++ runtime?
How is new() different from malloc()?
Explain selection sorting. Also write an example.
What are the new features that iso/ansi c++ has added to original c++ specifications?
What is the function of I/O library in C++ ?
What is null pointer and void pointer and what is their use?
What are guid?
What is a unnitialised pointer?
What's the order in which the local objects are destructed?
How is c++ different from java?
What is the main function c++?
What is the cout in c++?
Define a nested class. Explain how it can be useful.
Why can templates only be implemented in the header file?