What is virtual function?where and when is it used?
Answers were Sorted based on User's Feedback
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 |
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 |
What is the differances between a abstract calss and interface
design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
what is pointers
What is data binding?
what is function overloading..?
write string class as your own class in java without using any built-in function
#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
why the memory allocated with new cant be freed using free()
Why is encapsulation used?
What is namespace?
How does polymorphism work?