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 delegate in c#?
What is a lambda expression in c#?
how to prevent a class from being inherited in c#.net?
What is CASPOL?
Describe two uses of the “using” statement during the operation of c#?
What is difference between assembly and namespace?
What is the difference between finalize() and dispose()?
What does addressof operator do in background ?
What is the and operator in c#?
What is the diff between System.String and System.Text.StringBuilder classes?
Is string a data type in c#?
What is the difference between C# 3.5 and C# 4.0?
Can u list some style properties of List Box?
How can I process command-line arguments?
Which compiler switch creates an xml file from xml comments in the files in an assembly?