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

Define parsing?

580


What is lock statement in C#?

648


What is Delegate and what is it used for ?

654


What is an indexer in c#?

631


Is it not possible to store a boolean value as a variable?

524






Explain lock, monitors, and mutex object in threading.

596


What is a factory in c#?

562


Is double a decimal?

598


Is array passed by reference in c#?

592


What is mvc firstordefault?

559


What is single dimensional array in c#?

605


What are the main reasons to use c# language?

572


What is streamreader/streamwriter class?

586


How to use the sreamReader class to read form a text file?

648


What are All kind of access specifiers for a class and for methods

659