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 |
if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
Will rust take over c++?
How can you link a c program with a c function?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
What are manipulators used for?
What is the difference between "overloading" and "overridding"?
What does extern mean in a function declaration in c++?
Difference between an inspector and a mutator
Refer to a name of class or function that is defined within a namespace?
How the programmer of a class should decide whether to declare member function or a friend function?
Is ca high or low level language?