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 a constructor? What is a destructor?
Why is dll used?
Which language is used for desktop application?
What is using keyword?
Why delegate is used in c#?
Is c# pass by value?
What is difference between method overriding and method overloading?
What is the C# syntax to catch any possible exception?
What is the advantage of singleton class?
If a child class instance is created, which class constructor is called first - base class or child class?
What is lock statement in C#?
What does f mean in c#?
What is difference between c sharp and c#?
Can we have multiple threads in one app domain?
Can abstract class have constructor?