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 the system namespace?
What Is A Satellite Assembly?
Can an interface extend a class c#?
Give an example of removing an element from the queue?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
Can you instantiate an abstract class c#?
Can I define my own exceptions?
What is yield keyword?
What is type safe in c#?
List some of the common data providers for ado.net framework?
What is orm in c#?
What is the use of nullable types in c#?
Name the control which cannot be placed in mdi?
What is the use of convert toint32 in c#?
What is the difference between func and action delegate?