CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS MICROSOFT C# DETAILS
Question :
Does C# support multiple inheritance?


Category C# Interview Questions
Rating (4.9) By 21 users
Added on 7/28/2006
Views 3259
Rate it!
Answers:

No, Instead of this, we can inheritance the multiple interface,

but C++ support multiple inheritance



No c# does not support multiple inheritance as avoid ambiguity between classes but it support multiple inheritance in the form of interfaces.



 Posted by: satish    

Contact satish  Contact satish

c# does not support inheritance, but we can implment with help of interface.....



 Posted by: vyas    

Contact vyas  Contact vyas

C# does not support multiple inheritance directly...but it can be done using concept of interfaces.



 Posted by: Deepika    

Contact Deepika  Contact Deepika

No, But It will support Multiple inheritance of Interface

class CA
{

}
Class CB:CA
{

}
Class CC: CB, CA \Is not allowed
{

}

Interface IA1
{

}

Interface IA2

{

}

Class CA:IA1, IA2 \Allowed
{

}



 Posted by: Nageswara Rao    

Contact Nageswara Rao  Contact Nageswara Rao

Inheritace is of 2 types:
1) Multiple Implementation Inheritance
2) Multiple Interface Inheritance.

C# supports Multiple Interface Inheritance (i.e a Class can implement >1 interfaces but not more than 1 classes)



 Posted by: Farooq Majid Mir (Kashmir)    

Contact Farooq Majid Mir (Kashmir)  Contact Farooq Majid Mir (Kashmir)

No c# does not support,but it support
multiple inheritance in the form of interfaces



 Posted by: himanshu sahu    

Contact himanshu sahu  Contact himanshu sahu


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer

How do you inherit from a class in C#?


View Answer
What is an abstract class?

View Answer
What does the keyword virtual mean in the method definition?

View Answer
How's method overriding different from overloading?

View Answer
What's the top .NET class that everything is derived from?

View Answer
Describe the accessibility modifier protected internal.

View Answer
Are private class-level variables inherited?

View Answer
When you inherit a protected class-level variable? Who is it available to?

View Answer
Does C# support multiple inheritance?

View Answer
How do you inherit from a class in C#?

View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C# Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/9104/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.69