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


Please Help Members By Posting Answers For Below Questions

What is the system namespace?

467


What Is A Satellite Assembly?

533


Can an interface extend a class c#?

502


Give an example of removing an element from the queue?

460


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?

516






Can you instantiate an abstract class c#?

499


Can I define my own exceptions?

487


What is yield keyword?

494


What is type safe in c#?

483


List some of the common data providers for ado.net framework?

449


What is orm in c#?

468


What is the use of nullable types in c#?

478


Name the control which cannot be placed in mdi?

489


What is the use of convert toint32 in c#?

518


What is the difference between func and action delegate?

483