what is multi level inheritance give n example ?
Answer Posted / mohd aqeel ahmed
The best example is Say we have 3 class
ClassA,ClassB and ClassC.
ClassB is derived from ClassA and ClassC is derived ClassB
this is multi level inheritance..
ClassA
^
|
|
ClassB
^
|
|
ClassC
| Is This Answer Correct ? | 102 Yes | 18 No |
Post New Answer View All Answers
What is advantage of inheritance?
i got a backdoor offer in process global,Bangalore..Can i work with it?
Can we override main method?
Why do we use encapsulation in oops?
What is cohesion in oop?
How does polymorphism work?
Why do we use class?
Write a program to sort the number with different sorts in one program ??
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.
any one please tell me the purpose of operator overloading
write string class as your own class in java without using any built-in function
What is object in oop?
What does it mean when someone says I oop?
What causes polymorphism?
What is encapsulation with real life example?