ALLInterview.com :: Home Page KalAajKal.com
 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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net General
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
why .net does not support multiple inheritance?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: why .net does not support multiple inheritance?
Answer
# 1
In object-oriented programming languages with multiple
inheritance and knowledge organization, the diamond problem
is an ambiguity that arises when two classes B and C inherit
from A, and class D inherits from both B and C. If a method
in D calls a method defined in A (and does not override the
method), and B and C have overridden that method
differently, then from which class does it inherit: B, or C?
For example, in the context of GUI software development, a
class Button may inherit from both classes Rectangle (for
appearance) and MouseEvent (for functionality), and classes
Rectangle and MouseEvent both inherit from the Object class.
Now if the equals method is called for a Button object and
there is no such method in the Button class but there is an
over-ridden equals method in both Rectangle and MouseEvent,
which method should be eventually called?
 
Is This Answer Correct ?    3 Yes 0 No
Satish Kumar K
 
  Re: why .net does not support multiple inheritance?
Answer
# 2
Languages that only allow single inheritance (such as Ada,
Objective-C, PHP, C#, Delphi/Free Pascal and Java) allow the
multiple inheritance of interfaces (called protocols in
Objective-C). Interfaces are essentially abstract base
classes with all abstract methods and no data members. The
problem is therefore avoided since there is always only one
implementation of a specific method or property and no
ambiguity arises
 
Is This Answer Correct ?    2 Yes 0 No
Satish Kumar K
 
 
 

 
 
 
Other Dot Net General Interview Questions
 
  Question Asked @ Answers
 
What is view state? TCS4
What?s different about a Windows service as compared to a regular application?  1
syntax for binding the data from database Satyam1
What is WSDL and disco file ? TCS3
What base class do all Web Forms inherit from?  1
What is Custom attribute? How to create? Namespace? If I'm having custom attribute in an assembly, how to say that name in the code? What is Reflection in .NET? Accenture2
What is Assembly manifest? what all details the assembly manifest will contain.  1
What are the features of UIP Application Block?  1
What is Active Directory? What is the namespace used to access the Microsoft Active Directories?  3
What are channels in .NET Remoting?  2
DateTime[] dt = new DateTime[10] for(i=0; i<10; i++) { dt[i] = DateTime(2008, 1, i+1) } How many heap object will be created for the above array. Choose the correct answer below. Ans: 1, 10, 11, 12  3
How do you start, pause, continue or stop a Windows service off the command line?  1
Explain manifest & metadata. Wipro3
What is Active Directory? What is the namespace used to access the Microsoft Active Directories? What are ADSI Directories? TCS1
Write an StoredProcedure to get the values of a column within a date range. Deloitte1
what is viewstate?  1
What?s a Windows process?  1
what is the use of stored procedure which has only one select statement over simple select statment query ? Why to write a stored procedure then ?  3
How to write an MMC snap-in for my Windows service?  1
What?s Singleton activation mode?  1
 
For more Dot Net General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com