Difference between multi-level and multiple inheritance?

Answer Posted / anand

Multiple Inheritance:
One derived class can have more than one base class

Multilevel Inheritance:
One child class is derived from a base class which was derived from another base class.

Ex:
Multiple:

Class A Class B Class C
\ | /
\ | /
\ | /
-----------------------------
|
|
Class D [Derived class having mor e than one base class]


Multilevel:

Class A
|
|
|
Class B
|
|
|
Class C

Is This Answer Correct ?    91 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unmannaged code and will CLR handle this kind of code or not .

591


What is static void main in c#?

504


What do you mean by expression tree?

450


Why use a singleton instead of static methods?

463


Is it possible to have a static indexer in c#? Allowed in c#.

531






Name the method of servicebase class?

542


Explain what are three test cases you should go through in unit testing?

502


What are the properties of a string class?

515


How to force my .net app to run as administrator on windows 7?

507


What is a clr host?

557


Explain metadata in c#.

496


What is lazy loading c#?

502


What is Co- and Contra-Variance in C#?

540


What is the meaning of int parse in c#?

507


Can a method return multiple values in c#?

451