Difference between multi-level and multiple inheritance?

Answers were Sorted based on User's Feedback



Difference between multi-level and multiple inheritance?..

Answer / kautilya

Multiple Inheritence : while a class has inheritted more
than one classes then it is called multiple inheritance.

Multi-Level Inheritence : where a class can inherit only
one class. while a class has inherited a class and it is
being inherited by other class, this hierarchy is being
called as Multi-Level Inheritence.

Is This Answer Correct ?    16 Yes 1 No

Difference between multi-level and multiple inheritance?..

Answer / hafiz usman majeed

multiple inheritence means that a class is inherited from
more than one class. whereas multi-level inheritence means
that a class is inherited at more than one level that is it
can be inherited internally and/or protectedly.

Is This Answer Correct ?    15 Yes 1 No

Difference between multi-level and multiple inheritance?..

Answer / rajesh kumar k

Multiple inheritance :
More than one Base Class used in Derived Class
Example:
Class A (Base Class)
Class B (Base Class)
Class C (Base Class)

Class D (Derived Class)
Inherit Class A , Class B, Class C
----------------------------------------------------------
Multilevel Inheritance :
Base Class Used Derived Class The Same again we are using as
Base Class
Example :

Class A (Base)
Class B Inherit Class A (Derived Class for Class A
And Base Class for Class C)
Class C Inherit Class B

Is This Answer Correct ?    12 Yes 0 No

Difference between multi-level and multiple inheritance?..

Answer / jyothish vakkom

multiple: x x x (base)
x (sub)



multilevel: x (base)
x (intermedit)
x (sub)

Is This Answer Correct ?    12 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What is the example of predicate?

0 Answers  


What does public mean in c#?

0 Answers  


Is predicate a functional interface?

0 Answers  


What is managed or unmanaged code?

0 Answers  


Distinguish between system.string and system.text.stringbuilder classes?

0 Answers  


If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

0 Answers   HCL,


Difference between value and reference type. What are value types and reference types?

0 Answers  


What is cache memory in c#?

0 Answers  


What is the difference between constants and read-only?

0 Answers  


1. What is lazy loading? 2. What is delay signing? 3. How to transfer view object to presenter in MVP? 4. How to create a generic class? 5. What is Ajax object? 6. What is explicit interface implementation? 7. I1, I2 interfaces have same methods (say PrintName) explicitly implemented in class C1. Now how to call PrintName method from I1? 8. I have a list of Customers. List the customer with maximum orders using LINQ.

1 Answers   Aptron, Volvo,


How?s method overriding different from overloading?

4 Answers  


what is a callback function?

4 Answers  


Categories