what is virtual function?
Answer Posted / aarti ashar
A virtual function is a function member of a class,
declared using the "virtual" keyword. A pointer to a
derived class object may be assigned to a base class
pointer, and a virtual function called through the pointer.
If the function is virtual and occurs both in the base
class and in derived classes, then the right function will
be picked up based on what the base class pointer "really"
points at.
| Is This Answer Correct ? | 25 Yes | 6 No |
Post New Answer View All Answers
What is ambiguity in inheritance?
write a program to find 2^n+1 ?
What is a null tree?
What is destructor oops?
What is polymorphism what is it for and how is it used?
What is interface? When and where is it used?
What are the three parts of a simple empty class?
Is data hiding and abstraction same?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
what are the different types of qualifier in java?
What is an advantage of polymorphism?
any one please tell me the purpose of operator overloading
What are objects in oop?
What type of loop is a for loop?
What is cohesion in oop?