what is a virtual class?

Answer Posted / raj

In multiple inheritance when a class D is derived by two
base classes B and C and both base class is also inherite
by same class A then then class D will get duplicate copy
of uppper most base class A.In this case class A will
declare as virtual class

Is This Answer Correct ?    41 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstract class in oops?

583


What is coupling in oop?

583


What is new keyword in oops?

582


Is enum a class?

593


What is the point of oop?

640






i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1821


What is abstraction example?

606


What is data binding in oops?

572


What does I oop mean?

605


Why is polymorphism important in oop?

617


Write a program to sort the number with different sorts in one program ??

1902


Where is pseudocode used?

553


What is oops concept with example?

566


#include #include #include #include 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

2052


What is super in oop?

582