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
Is java a c++?
What is singleton pattern in c++?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Who was the creator of c++?
What is std namespace in c++?
Explain the register storage classes in c++.
What is meant by forward referencing and when should it be used?
Incase of a function declaration, what is extern means?
Difference between overloaded functions and overridden functions
Are c and c++ similar?
What is the history of c++?
What are keywords in c++?
What do you mean by global variables?
Can a program run without main in c++?
Is C++ case sensitive a) False b) Depends on implementation c) True