Difference between multi-level and multiple inheritance?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What is the example of predicate?
What does public mean in c#?
Is predicate a functional interface?
What is managed or unmanaged code?
Distinguish between system.string and system.text.stringbuilder classes?
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?
Difference between value and reference type. What are value types and reference types?
What is cache memory in c#?
What is the difference between constants and read-only?
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.
How?s method overriding different from overloading?
what is a callback function?