what is multi level inheritance give n example ?
Answer Posted / aswini.s
derived a new class from another derived class.It is known
as multilevel inheritance.
example:
grandfather->father->son.
| Is This Answer Correct ? | 260 Yes | 33 No |
Post New Answer View All Answers
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is cohesion in oop?
write a program to find 2^n+1 ?
How do you achieve polymorphism?
What is inheritance in oop?
When not to use object oriented programming?
what is the drawback of classical methods in oops?
Why oops is important?
What is constructor overloading in oop?
What are the types of abstraction?
What is and I oop mean?
What is meant by oops concept?
What are the features of oop?
#include
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.