What is virtual class and friend class?

Answer Posted / kirti joshi

friend class is used to share private data between 2 or
more classes the function declared as freind are not called
using any object it is called like normal .the arguments to
such functions is normally object of a class.
virtual class is used for run time polymorphism when object
is linked to procedure call at run time

Is This Answer Correct ?    53 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of oop over procedural language?

627


Where is pseudocode used?

563


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

2166


Can enum be null?

587


What is multilevel inheritance in oop?

557






What is object in oop?

679


what are the ways in which a constructors can be called?

1581


What is cohesion in oop?

624


Is oop better than procedural?

572


What is a null tree?

632


What is overriding in oop?

550


What is static in oop?

588


What is the types of inheritance?

602


What is the example of polymorphism?

556


What is object in oop with example?

699