What is the difference between virtual functions and pure virtual functions?
Answer Posted / hrpynux@gmail.com
A virtual function is a member function of base class which can be redefined by derived class. A pure virtual function is a member function of base class whose only declaration is provided in base class and should be defined in derived class otherwise derived class also becomes abstract.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Name the different types of stl containers.
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
What is the extension of c++?
How does free know the size of memory to be deleted
Differentiate between a constructor and a destructor in c++.
What is a tuple c++?
What is the difference between inheritance and polymorphism?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
How is class defined?
Is turbo c++ free?
What are activex and ole?
What is polymorphism and its type in c++?
What is a modifier in c++?
Is rust better than c++?
Can we delete this pointer in c++?