What do you mean by multiple inheritance and multilevel
inheritance? Differentiate between them.

Answer Posted / ravinder kumar

Multiple: ClassA--extends-->ClassB, ClassA--extends--
>ClassC, ClassA--extends-->ClassD class A can Inherit all
the classes and can have access on all calss' public
properties and functions.


MultiLevel: ClassA-->ClassB-->ClassC-->ClassD and ClassD
will have the accesss on all the properties of its upper
level class like C,B and A

Is This Answer Correct ?    30 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can static class have constructor?

780


What is the point of oop?

852


Why is static class not inherited?

813


What is the example of polymorphism?

736


What are the benefits of interface?

793


Is this job good for future? can do this job post grduate student?

1901


What are the benefits of oop?

849


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1839


Where is pseudocode used?

726


What polymorphism means?

804


What is abstraction with example?

818


What is a function in oop?

815


write string class as your own class in java without using any built-in function

2195


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.

938


What is for loop and its syntax?

790