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 |
Illustrate the process of code compilation in c#?
class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } what will happen & why?
Why do you need boxing in c#?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
What is lambda expression in c#?
Can u create multiple threads of execution ?
1 Answers IBM, ITC Infotech, UHU,
What is a resource? Provide an example from your recent project.
2 Answers IBM, Logica CMG, Wipro,
Can datetime be null c#?
What are types in c#?
Is it possible to inherit multiple interfaces?
What does protected internal access modifier mean?
What is the purpose of private constructor in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)