What is multiple inheritance ?
Answer Posted / funny guy
Multiple Inheritance is a feature of OOPS where the derived
class can extend features from more than one class.
That means if we have class A and class B then class C can
extend class A and class B.
Having said that from Java point of view this feature is not
supported as it may result in Diamond Problem.
C++ does support this features.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What type of loop is a for loop?
What is the purpose of polymorphism?
What is the main purpose of inheritance law?
Why we use classes in oop?
What is byval and byref? What are differences between them?
Which is better struts or spring?
What is polymorphism give a real life example?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
#include
What are the advantages of polymorphism?
write a program to find 2^n+1 ?
What is constructor overloading in oop?
How to call a non virtual function in the derived class by using base class pointer
How do you define social class?
Can an interface inherit a class?