alternative of multiple inheritance in c#?
-
Interface
-
abstract class
-
static class
-
All the above
A
Correct answer
Explanation
C# uses interfaces as the primary alternative to multiple inheritance. A class can implement multiple interfaces, gaining polymorphic behavior from each, while still inheriting implementation from only one base class. Abstract classes (option B) are single-inherited like regular classes. Static classes (option C) cannot be inherited at all. Therefore, interfaces are the correct alternative.