What is Pure Virtual Function? Why and when it is used ?
Answer Posted / guest
The abstract class whose pure virtual method has to be
implemented by all the classes which derive on these.
Otherwise it would result in a compilation error.
This construct should be used when one wants to ensure that
all the derived classes implement the method defined as
pure virtual in base class.
| Is This Answer Correct ? | 77 Yes | 44 No |
Post New Answer View All Answers
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
what is the difference between overloading & overriding? give example.
How many different levels of pointers are there?
Can we use pointers in c++?
What problems might the following macro bring to the application?
Why Pointers are not used in C++?
Can we distribute function templates and class templates in object libraries?
What are vtable and vptr?
What are the c++ access specifiers?
Difference between a homogeneous and a heterogeneous container
How are the features of c++ different from c?
What is a pdb file?
explain the reference variable in c++?
What is a lambda function c++?
Can I learn c++ in a week?