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 the function to call to turn an ascii string into a long?
What is a modifier in c++?
Is it possible to use a new for the reallocation of pointers ?
What is the difference between public and private data members?
How do you traverse a btree in backward in-order?
Where do I find the current c or c++ standard documents?
Differentiate between late binding and early binding. What are the advantages of early binding?
Explain the properties and principles of oop.
Out of fgets() and gets() which function is safe to use and why?
What is tellg () in c++?
List the issue that the auto_ptr object handles?
What is class in c++ with example?
What is polymorphism in c++? Explain with an example?
List the features of oops in c++?
what is VOID?