What is virtual constructors/destructors?

Answer Posted / khadeer.k

virtual constructors are used when we need to avoid the
copy same. desructor frees the memory with a ~(tilde) symbol

Is This Answer Correct ?    8 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the types of inheritance?

604


What is the purpose of polymorphism?

681


Is this job good for future? can do this job post grduate student?

1694


Why do we use inheritance?

630


#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

2169






what type of question are asked in thoughtworks pair programming round ?

1763


Are polymorphisms mutations?

703


How oops is better than procedural?

589


How to use CMutex, CSemaphore in VC++ MFC

4333


can we make game by using c

3430


What is polymorphism and why is it important?

562


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1582


How does polymorphism work?

635


How do you achieve polymorphism?

618


Which type does string inherit from?

616