C# supports multiple inheritance by using

  1. Interfaces

  2. Abstraction

  3. Classes

  4. None


Correct Option: A
Explanation:

To answer this question, the user needs to know the concept of inheritance in object-oriented programming and how it is implemented in C#.

C# does not support multiple inheritance with classes, which means a class cannot inherit from multiple classes at the same time. However, C# does support multiple inheritance with interfaces.

Interfaces are a way to define a set of methods and properties that a class must implement. A class can implement multiple interfaces, which allows it to inherit functionality from each interface.

Abstraction is a concept in object-oriented programming that allows you to define a set of methods or properties without providing an implementation. This allows other classes to inherit from the abstract class and provide their own implementations of the methods and properties.

Therefore, the correct answer is:

The Answer is: A. Interfaces

Find more quizzes: