Multiple inheritance?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Multiple inheritance?

Hybrid View

  1. #1
    Join Date
    Jun 2010
    Posts
    1

    Multiple inheritance?

    Why doesn't .NET support multiple inheritance?
    Share on Google+

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    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.
    Share on Google+

  3. #3
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,699

    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
    Share on Google+

  4. #4
    Join Date
    Jun 1999
    Posts
    153

    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.
    Kevin
    Share on Google+

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center