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
What is int32 maxvalue?
Is it possible to inherit multiple interfaces?
Is string nullable in c#?
What is difference between private and protected?
What is the difference between static and private constructor?
What is default parameter in c#?
Can multiple inheritance implemented in c# ?
Why do we need escape characters?
How do you create empty strings in c#?
Why do we need to override in c#?
What are primitive data types in c#?
Explain the use of Mutex in C#?
Is dictionary a collection?
What is the default boolean value in c#?
What is string literal in c#?