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 static class in C#?

0 Answers   Winsol Solutions,


Difference between multi-level and multiple inheritance?

17 Answers   Microsoft,


What are delegates in C#?

0 Answers   Winsol Solutions,


What is local function?

0 Answers  


What is difference between event and delegate in c#?

0 Answers  






Did it possible to cast a generic type of derived class to generic type of base class?

2 Answers   TCS,


How To Maintain Transaction In C#?

1 Answers   Phoenix Technologies,


What is the difference between internal and private in c#?

0 Answers  


What is parsing?

0 Answers  


If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?

2 Answers  


What is the difference between public, static, and void?

0 Answers  


What is the difference between dll and lib?

0 Answers  


Categories