GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Microsoft  >  C#
Go To First  |  Previous Question  |  Next Question 
 C#  |  Question 168 of 431    Print  
Does C# support multiple inheritance?
Skill/Topic: Intermediate
A) Yes
B) No



  
Total Answers and Comments: 5 Last Update: October 10, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 07, 2005 04:22:15   #1  
samiksc Member Since: October 2005   Contribution: 233    

RE: Does C# support multiple inheritance?
No. C# does not support multiple inheritance. A class can inherit from maximum one base class, although it can implement any number of interfaces.
 
Is this answer useful? Yes | No
February 23, 2006 17:27:15   #2  
prakash_s_nayak Member Since: January 2006   Contribution: 5    

RE: Does C# support multiple inheritance?
Answer is Yes C# is a programming language which supports multiple inheritance only thing is .netFramework does not support multiple inheritance.
 
Is this answer useful? Yes | No
July 10, 2006 00:10:23   #3  
Meenu        

RE: Does C# support multiple inheritance?

From MSDN..

Like Java, C# does not support multiple inheritance, meaning that classes cannot inherit from more than one class. You can, however, use interfaces for that purpose in the same way as in Java.


 
Is this answer useful? Yes | No
July 10, 2006 01:58:27   #4  
Prakash        

RE: Does C# support multiple inheritance?

So far, C# is used in .Net framework only obiviously it cannot implement multiple inheritance.


 
Is this answer useful? Yes | No
October 10, 2007 09:20:58   #5  
livd_ro Member Since: October 2007   Contribution: 2    

RE: Does C# support multiple inheritance?
C# does not support multiple implementation inheritance. A class cannot be derived from more than one class. However, a class can be derived from multiple interfaces.
Conclusion: the correct answer is that C# does support multiple inheritance as long there is only one base class and the others are interfaces.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape