What is virtual function?where and when is it used?

Answers were Sorted based on User's Feedback



What is virtual function?where and when is it used?..

Answer / reshma khan pathan

In object-oriented programming, a virtual function is a
function whose behavior can overridden by a function of
same signature of inherited class.

Is This Answer Correct ?    6 Yes 0 No

What is virtual function?where and when is it used?..

Answer / vijaya lakshmi

virtual memory used as a temporary memory.it mainly
used to store a another variable value.

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More OOPS Interview Questions

What is the differances between a abstract calss and interface

5 Answers   Aviva, Symphony,


design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }

1 Answers   HSBC,


Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

4 Answers   EA Electronic Arts,


what is pointers

7 Answers   Exilant,


What is data binding?

4 Answers   Ittiam Systems,






what is function overloading..?

4 Answers  


write string class as your own class in java without using any built-in function

0 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

0 Answers  


why the memory allocated with new cant be freed using free()

2 Answers  


Why is encapsulation used?

0 Answers  


What is namespace?

15 Answers  


How does polymorphism work?

0 Answers  


Categories