title: Does C# support multiple inheritance 4.0?
body: <p>I recently took a <a href="http://www.proprofs.com/quiz-school/story.php?title=c-skills-test" rel="nofollow noreferrer">practice C# skills</a> test and one of the questions was, </p>
  
  <blockquote>
    <p>Does C# support multiple inheritance?</p>
  </blockquote>
  
  <p>I answered yes, and was was marked wrong. After some research online, its full of answers of why it is not supported:</p>
  
  <p><a href="https://stackoverflow.com/questions/11028486/multiple-inheritance-support-in-c-sharp">Multiple inheritance support in C#</a></p>
  
  <p><a href="https://stackoverflow.com/questions/995255/why-is-multiple-inheritance-not-allowed-in-java-or-c">Why is Multiple Inheritance not allowed in Java or C#?</a></p>
  
  <p><a href="http://www.codeproject.com/Questions/652495/Why-does-csharp-doesnt-support-Multiple-inheritanc" rel="nofollow noreferrer">http://www.codeproject.com/Questions/652495/Why-does-csharp-doesnt-support-Multiple-inheritanc</a></p>
  
  <p>Then I went and tried to replicate the error I should be getting when trying to inherit from a Class that already inherited from a Base Class, and there is no error. I am using console application, and I recently upgraded to .net 4.5, maybe things have changed?</p>
  
  <p><strong>Code for how I tested:</strong></p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Collections;
  
  namespace ConsoleApplication2
  {
      class Program
      {
          static void Main(string[] args)
          {
  
              Leo bk = new Leo();
  
              bk.avgWords();
  
              Console.ReadLine();
  
          }
  
          public void bubbleSort(int[] input)
          {
  
          }
  
          public void insertionSort(int[] input)
          {
  
          }
      }
  
      public class Gatsby : Books
      {
  
  
          public override void avgWords()
          {
  
              Console.WriteLine(5);
  
          }
  
      }
  
      public class Leo : Gatsby
      {
  
  
          public override void avgWords()
          {
              Console.WriteLine(7);
          }
  
      }
  
      public class Dicaprio : Leo
      {
  
  
      }
  
      public class Books
      {
  
          public int id { get; set; }
          public string title { get; set; }
          public string author { get; set; }
  
          public virtual void avgWords()
          {
  
  
              Console.WriteLine(3);
          }
  
  
      }
  }
  </code></pre>