Difference between multi-level and multiple inheritance?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

787


Can an exception be thrown from a catch block?

770


What is the use of return in c#?

713


Structs are largely redundant in c++. Why does c# have them?

1018


What is boolean conditions in c#?

702


Define an escape sequence, name few strings in escape sequence?

723


How do switch statements work?

680


What is the output of TextWriterTraceListener redirected?

756


Which is faster array or arraylist in c#?

686


Which technology is best for desktop application?

637


What does an indexer do?

641


Can we assign null value to integer?

653


What is the difference between C# 3.5 and C# 4.0?

732


What are the different types of assembly?

786


Difference between value and reference type.

709