Can you inherit multiple interfaces?
Answer Posted / 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 |
Post New Answer View All Answers
What is executescalar in c#?
What is the difference between system.text.stringbuilder and system.string?
Explain About Web.config
What is a generic class?
What does void mean unity?
How to find whether the application is run from inside ide or not?
Can struct inherit from class c#?
what are nullable types in c#
What are cookies in c#?
Why do you need boxing in c#?
List out the differences between array and arraylist in c#?
What is type system in c#?
Is Facebook a desktop application?
How to reverse each word in a string using c#?
What is Fragmentation and its Types?