About 239,000 results
Open links in new tab
  1. interface - Multiple Inheritance in C# - Stack Overflow

    Since multiple inheritance is bad (it makes the source more complicated) C# does not provide such a pattern directly. But sometimes it would be helpful to have this ability. For instance I'm …

  2. c# - How interfaces achieve multiple inheritance - Stack Overflow

    Apr 4, 2014 · Inheritance is mostly important for re-usability of code and functionality and multiple inheritance was helping to re-use code from more than one class, but in interface I didn't find …

  3. c# - Multiple inheritance with Abstract class and Interface - Stack ...

    Jul 6, 2012 · The basic rule: You need to include the interface always where the implementation is. So if you create a method within an abstract classes and define an interface of this method, …

  4. c# - Inheritance from multiple interfaces with the same method …

    Apr 29, 2019 · If we have a class that inherits from multiple interfaces, and the interfaces have methods with the same name, how can we implement these methods in my class? How can …

  5. How to simulate multiple inheritance without interfaces?

    Oct 3, 2010 · How can I simulate multiple inheritance in C# without using interfaces. I do believe, interfaces abilityes are not intended for this task. I'm looking for more 'design pattern' oriented …

  6. c# 4.0 - C# Multiple Inheritance - Stack Overflow

    Short Answer Consider using interfaces instead, which allow for multiple inheritance and can be declared using the interface keyword. Long Answer Inheritance from multiple base classes in …

  7. Mimicking multiple inheritance in C# without interfaces

    Nov 28, 2022 · Since C# version 8 there is support for default implementation in interfaces. Hence, you can you interfaces to achieve quasi-multiple inheritance, combining several pre …

  8. Multiple inheritance using interface C# - Stack Overflow

    Dec 31, 2009 · I mentioned multiple inheritance and interfaces because i read that interfaces help in creating multiple interitance (primarily web), so i wanted to know if a prob like i mentioned …

  9. C# Multiple Inheritance with Interfaces - Stack Overflow

    May 23, 2017 · Note that you are not achieving multiple inheritance at all. C# has singular inheritance. You are implementing multiple interfaces. There is absolutely no reason why you …

  10. .net Multiple inheritance from abstract classes - Stack Overflow

    Oct 2, 2012 · That specifically? No, as multiple inheritance is not supported in C#. The closest you could get would be using an interface that combined two others: public interface …

Refresh