What is a pure virtual function?
Why is it represented as = 0...how is the internal
implementation for the same
Answers were Sorted based on User's Feedback
Answer / vikas
A pure virtual function makes a class abstract.0 is used in
its representation to distinguish it from a normal virtual
function. More at
http://www.cppquestions.com/viewtopic.php?f=26&t=14
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Answer / viji
A virtual function with a null body is said to be pure
virtual function.
The pure virtual function can be defined later in its
derived class.......
| Is This Answer Correct ? | 3 Yes | 2 No |
What are the methods of exporting a function from a dll?
What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?
List the issue that the auto_ptr object handles?
You have to take 2 arrays of length 10. Input the values of array 1 from the user. Then copy the values of array 1 to array 2 in ascending order For example if user enters 9, 5, 6, 8, 1, 0, 2, 7, 4, 3 then copy the smallest element i.e. 0 first followed by 1, 2 and so
What is null c++?
What is a multimap c++?
What are 2 ways of exporting a function from a dll?
Why Pointers are not used in C++?
What do you mean by abstraction in C++?
What is diamond problem in c++?
What is & in c++ function?
What is the difference between multiple and multilevel inheritance in c++?