GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  Microsoft.NET
Go To First  |  Previous Question  |  Next Question 
 Microsoft.NET  |  Question 6 of 38    Print  
how can create multiple inheritence inc#, with example?

  
Total Answers and Comments: 8 Last Update: September 28, 2006     Asked by: abdul gaffar 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 17, 2005 05:51:43   #1  
ravi        

RE: how can create multiple inheritence inc#, with exa...
multiple inheritance is not possible in C#. although this is possible in C++ and creates more ambiguity...therefore it's avoided in C#.
 
Is this answer useful? Yes | No
December 22, 2005 21:52:30   #2  
phanikumar        

RE: how can create multiple inheritence inc#, with exa...
We can achieve this by creatng interfaces because interfaces supports multiple inheritance.
 
Is this answer useful? Yes | No
January 17, 2006 05:52:36   #3  
anil        

RE: how can create multiple inheritence inc#, with exa...
i think it is possible by using interfaces.can u give more clarification to me
 
Is this answer useful? Yes | No
January 27, 2006 14:37:26   #4  
RxD        

RE: how can create multiple inheritence inc#, with exa...

A class can implement multiple interfaces.

public class A : Ix Iy Iz

This way you can achieve multiple inheritence

Regards

RxD


 
Is this answer useful? Yes | No
March 24, 2006 01:52:11   #5  
Muruganandham C        

RE: how can create multiple inheritence inc#, with exa...

Sory you are wrong u can implement Multiple inheritance through Interface in c#

Muruganandham C


 
Is this answer useful? Yes | No
May 12, 2006 08:23:54   #6  
Sanjay Talreja        

RE: how can create multiple inheritence inc#, with exa...

C# doesn't support Multiple Inheritance.

Bcoz there are lot of problems with multiple inheritance.

so u can have multiple inheritance with the help of Intefaces.

Say there is a class manager who is derived from class person but who also wants the functionality of class employee then he can have it using an interface.

But the methods inside the interface will not have any body.


 
Is this answer useful? Yes | No
August 27, 2006 01:34:46   #7  
harish        

.NET
good question
 
Is this answer useful? Yes | No
September 28, 2006 01:59:29   #8  
hai        

using interface only we can achieve multiple in heritance

using interface


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape