title: Inconsistent Accessability: Base Class is less accessible than class
body: <p>I've got the code below and I'm trying to do some inheritance exercises but when I try to run this code it gives me an error:</p>
  
  <pre><code>Inconsistent Accessability: Base Class is less accessible than class
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>class Program
  {
      static void Main()
      {
  
          FoodProducts Test = new FoodProducts();
  
          Test.Limit();
  
  
  
      }
  }
  
  public class FoodProducts : Products
  {
      public void FoodProduct()
      {
          Console.WriteLine("This is food product");
      }
  
      public void Limit()
      {
          Console.WriteLine("This is an Attribute of a Product");
      }
  
  }
  </code></pre>
  
  <p>Would someone be able to help me?</p>