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

Why do we need polymorphism in c#?

688


What are the benefits of oop?

607


What is balance factor?

589


What is oops and its features?

589


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1147






write a program that takes input in digits and display the result in words from 1 to 1000

1989


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!!!)

1639


what is the sylabus for priliminaries?

1691


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1459


Can main method override?

585


What are main features of oop?

633


What is an advantage of polymorphism?

597


What is class encapsulation?

594


Why do while loop is used?

577


What is the purpose of polymorphism?

681