CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2010

    Multiple inheritance?

    Why doesn't .NET support multiple inheritance?

  2. #2
    Join Date
    Oct 2002
    Timisoara, Romania

    Re: Multiple inheritance?

    Why should it? Multiple inheritance can lead to some problems (such as the diamond problem) and it was decided that it would not support. However it promotes designing for interfaces and you can implement as many interfaces as you want.

    Is there some scenario where you can't live without MI? I don't think so.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  3. #3
    Join Date
    Jul 2002
    Portsmouth. United Kingdom

    Re: Multiple inheritance?

    Quote Originally Posted by cilu View Post
    Is there some scenario where you can't live without MI? I don't think so.
    I could use a hand trowel to dig over my garden if I had to, but I'd still prefer to use a spade. Using a 'workaround' is not the same as using the real tool.
    "It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
    Richard P. Feynman

  4. #4
    Join Date
    Jun 1999

    Re: Multiple inheritance?

    One reason .NET doesn't support MI is that it is designed to be cross-language. Most OO languages don't support MI.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width