title: Does not contain a constructor that takes 0 arguments
body: <p>I get an error stating &quot;Products does not contain a constructor that takes 0 arguments&quot; from the following code:</p>
  <pre><code>public class Products
  {
      string id;
      string name;
      double price;
      int soldCount;
      int stockCount;
  
      public Products(string id, string name, double price, 
                        int soldCount, int stockCount, double tax)
      {
          this.id = id;
          this.name = name;
          this.price = price;
          this.soldCount = soldCount;
          this.stockCount = stockCount;
      }
  }
  
  //I have got some get and set values for the code above 
  //but it would have been too long to put in here
  
  public class FoodProducts : Products
  {
      public FoodProduct()
      {
          Console.WriteLine(&quot;This is food product&quot;);
      }
  
      public void Limit()
      {
          Console.WriteLine(&quot;This is an Attribute of a Product&quot;);
      }
  }
  </code></pre>