What are Virtual Functions? How to implement virtual
functions in "C" ?
Answer Posted / rama
When we use the same function name in both the base and the
derived classes, the function in base class is declared as virtual...we must access virtual function through the use of a pointer declared as a pointer to the base class..
In other words, virtual function is defined in the base class,it need not be necessarily redefined in the derived class. In such cases,the respective calls will invoke the base class function.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is purpose of abstract class?
Write my own zero-argument manipulator that should work same as hex?
Is java as fast as c++?
What is the prototype of printf function?
What do you mean by function and operator overloading in c++?
What are containers in c++?
What does n mean in c++?
Define 'std'.
Why is c++ is better than c?
What is difference between c++ 11 and c++ 14?
What is vector processing?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is a template in c++?
What character terminates all character array strings a) b) . c) END
How will you call C functions from C ++ and vice-versa?