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
What is variable example?
How do you achieve polymorphism?
Why do we use class in oops?
What causes polymorphism?
What is a null tree?
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.
#include
to find out the minimum of two integer number of two different classes using friend function
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
State what is encapsulation and friend function?
What is polymorphism in oops with example?
What is the problem with multiple inheritance?
Why do we use oops?
What is class and object in oops?
Please send ford technologies placement paper 2 my mail id