Can you inherit multiple interfaces?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What is serialization in unity?
Distinguish between finally and finalize blocks?
What is a nested type. Give an example?
What is managed code?
Is a valid int value?
What does question mark mean in c#?
What are different types of Delegates in C#?
What is difference between yielding and sleeping?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
What are custom attributes in c#?
A->B->C (EXTENDS) How the constructors are called when we created an object of C
3 Answers Karur Vysya Bank KVB,
Is versioning applicable to private assemblies?