Yah! why not, inherit multiple interface but only one class inherit to base class
Interviews2 answers
Can we inherit multiple interfaces in C#?
2 Answers
Logesh PalaniPosted Mar 7, 2020, 8:32 PM EST
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#
neeru sharmaPosted Sep 17, 2012, 7:59 AM EDT
