Question:

How can we implement multiple inheritance in C# ?

by  |  earlier

0 LIKES UnLike

How can we implement multiple inheritance in C# ?

 Tags:

   Report

1 ANSWERS


  1. C# (or .NET for that matter) doesn't support multiple inheritance. To work around this, you'd use Interfaces.

    Suppose you have a class called "Pen" that inherits from a base class called "WritingInstrument". If you need an additional level of inheritance, you need to do it with interfaces:

    public class Pen : WritingInstrument, IWriteableObject

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.