Can you inherit multiple interfaces?

Answers were Sorted based on User's Feedback



Can you inherit multiple interfaces?..

Answer / umesh

Yes..you can

Is This Answer Correct ?    30 Yes 1 No

Can you inherit multiple interfaces?..

Answer / t.prabu

S

Is This Answer Correct ?    11 Yes 2 No

Can you inherit multiple interfaces?..

Answer / shiba shankar

Yes we can inherit multiple interface.that's why we are
using interface.We can get by imlementing interface after
making multiple interface.

Is This Answer Correct ?    8 Yes 0 No

Can you inherit multiple interfaces?..

Answer / vikas sv

Yes. Multiple interfaces may be inherited in C#.

Note that when a class and multiple interfaces are to be
inherited, then the class name should be written first,
followed by the names of the interfaces. See code example
below, on how to inherit multiple interfaces in C#.

C# Example
class someclass : parentclass, IInterface1, IInterface2
{
//...Some code in C#
}

Is This Answer Correct ?    4 Yes 0 No

Can you inherit multiple interfaces?..

Answer / hitesh sharma

Yup, In Dotnet C# Multiple Inheritence is not allowed so
instead we can use Interfaces which are inheritable..

Is This Answer Correct ?    5 Yes 2 No

Can you inherit multiple interfaces?..

Answer / pawanreddy

Nope, You can't inherit from interface, you can only implement it. You can implement multiple interfaces in a single class.
You can only inherit from class, c# won't support multiple inheritance.

Is This Answer Correct ?    2 Yes 2 No

Can you inherit multiple interfaces?..

Answer / kirti

Yes, why not.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is parameters in c#?

0 Answers  


Are private class-level variables inherited?

5 Answers  


What do you mean by hashtable c#?

0 Answers  


Can constructor be overloaded in c#?

0 Answers  


Explain code compilation in c#.

0 Answers  






In a C# class we have a SortedList member m_addinProjects we want to provide an iterator to allow the consumer of this class access to the items in the collection. Please provide an iterator method for the AnalyzeAddinsDLL class below and an example of how it would be used. namespace AnalyzeAddinsDLL { public class AllAddInProjects { private SortedList<string, AddInProject> m_addinProjects; public AllAddInProjects() { m_addinProjects = new SortedList<string, AddInProject>(); } } }

0 Answers   ABC, WinsIndia,


What are the different types of classes?

0 Answers  


Is list ienumerable c#?

0 Answers  


Is arraylist type safe in c#?

0 Answers  


What are c# i/o classes? What are the commonly used i/o classes?

0 Answers  


Define using statement in c#?

0 Answers  


What is alias in c#?

0 Answers  


Categories