what is virtual function?
Answer Posted / ann
A virtual function is a function which is preceded by the
keyword 'virtual' followed by its normal declaration.When we
use the same function name in both the base and derived
classes,the function in base class is declared as virtual.
This concept is a very important part of the
polymorphism portion of object-oriented programming
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How long to learn object oriented programming?
What is constructor overloading in oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< They started with the brief introduction followed by few
basic C++ questions on polumorphism, inheritance and then
virtual functions.
What is polymorphims?
How you will access polymorphic functions in C?
How virtual function mechanism works?
What is methods in oop? What is oops and why we use oops? What is difference between multiple inheritance and multilevel inheritance? What is an example of genetic polymorphism? Which language is pure oop? What is a null tree? if i have same function with same number of argument but
defined in different files. Now i am adding these two files
in a third file and calling this function . which will get
called and wht decide the precedence? How do you answer polymorphism? What is overloading and its types? What does and I oop mean in text? What is the real life example of polymorphism?