ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Microsoft Related >> C Sharp
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1444)
 VB.NET interview questions  VB.NET Interview Questions (151)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (34)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
Question
Difference between multi-level and multiple inheritance?
 Question Submitted By :: C-Sharp
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
Multiple Inheritance : we can inherit more than one class
in the same classe.

Multi-Level Inheritance: where onc class can inherit only
one base class and the derived class can become base class
of some othere class.
 
Is This Answer Correct ?    147 Yes 15 No
Kautilya
 
Answer
# 2
In Multipal inheritance like this:

Base Calss
_________________
/ | \
/ | \
Class1 Class2 Class3

MultiLevel Inherintance:

Base Class
|
|
Class1
|
|
Class2
 
Is This Answer Correct ?    107 Yes 45 No
Muhammad Usman
 
 
 
Answer
# 3
Multiple Inheritance:
One derived class can have more than one base class

Multilevel Inheritance:
One child class is derived from a base class which was derived from another base class.

Ex:
Multiple:

Class A Class B Class C
\ | /
\ | /
\ | /
-----------------------------
|
|
Class D [Derived class having mor e than one base class]


Multilevel:

Class A
|
|
|
Class B
|
|
|
Class C
 
Is This Answer Correct ?    55 Yes 1 No
Anand
 
Answer
# 4
Multiple Inheritance : we can inherit more than one class
in the same classe.

Multilevel Inheritance:
we can inherit a single class in more than one class
one base class and many derived class
 
Is This Answer Correct ?    36 Yes 17 No
Sarathi Soja
 
Answer
# 5
Multiple inheritance: It has one derived class and can have
more than one base class.

Multilevel inheritance: It has one base class and many
levels of derived classes.
 
Is This Answer Correct ?    26 Yes 11 No
Ashifa
 
Answer
# 6
multiple inheritance:A Class Extends or derived from
atleast more one class or interface.

Multi-level:A class Extends or Derived from exactly one
class & derived class can act as base class for another class
 
Is This Answer Correct ?    12 Yes 2 No
Vikram
 
Answer
# 7
multiple inheritance: It is define that type of inheritence
in which more than one class can derived one derived class.
ie.



base1 base 2 base n
| | |
| | |
|_____________ derived _______|

multilevel inheritance: It is define that type of
inheritance in which one derived class can derived a new
class as well as well base class for new derived class is
refered to as intermidite base class..


ie. 1 base class
|
|
|
2 intermidiate base class
|
|
|
3 derived



or .. student
|
|
test
|
|
result
 
Is This Answer Correct ?    3 Yes 0 No
Vipin Rana
 
Answer
# 8
Multiple Inheritance : we can inherit more than one class
in the same classe.

Multilevel inheritance: It has one base class and many
levels of derived classes.
 
Is This Answer Correct ?    3 Yes 0 No
Naveenshekhar
 
Answer
# 9
In C#:
interface is supporting multiple inheritence
class is supporting multi level inheritence.
 
Is This Answer Correct ?    2 Yes 0 No
Aruna
 
Answer
# 10
Multiple Inheritance:- It will done through 'Interface' in C#

Ex:- Interface1(or Class1) Interface2(or class2)
! !
! !
! !
! -------------------!
!
!
Class
Multilevel Inheritance :- In the multilevel inheritance One class another and so on

Class1
!
!
Class2
!
!
Class3
 
Is This Answer Correct ?    1 Yes 0 No
Ankur
 

 
 
 
Other C Sharp Interview Questions
 
  Question Asked @ Answers
 
what is a callback function?   4
Explain ACID rule of thumb for transactions.   1
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?   3
Does C# support multiple inheritance?   5
Why can?t you specify the accessibility modifier for methods inside the interface? Mind-Tree 3
Explain the difference between a sub and a function? Wipro 1
Will finally block get executed if the 1exception had not occurred?   3
What is the difference between directcast and ctype? Wipro 2
What?s the .NET datatype that allows the retrieval of data by a unique key? Smartdata 2
Where is the output of TextWriterTraceListener redirected?   1
When do you absolutely have to declare a class as abstract (as opposed to free-willed educated choice or decision based on UML diagram)? Mind-Tree 2
Does C# supports multi-dimensional arrays? Microsoft 3
 
For more C Sharp Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com