What is virtual destructor? Why?

Answer Posted / mugdha taru

virtual destructor are those who can not override while
redefining derived class.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable example?

599


How do you achieve polymorphism?

622


Why do we use class in oops?

559


What causes polymorphism?

577


What is a null tree?

632






Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

637


#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

2174


to find out the minimum of two integer number of two different classes using friend function

1645


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2014


State what is encapsulation and friend function?

703


What is polymorphism in oops with example?

537


What is the problem with multiple inheritance?

591


Why do we use oops?

599


What is class and object in oops?

615


Please send ford technologies placement paper 2 my mail id

1660