title: C# constructor gives "Method must have a return type"
body: <p>I been trying to learn how to create a class in C#. I created a class and than I tried to create a constructor to go along with the class. But when I created the constructor in the class, the compiler keeps thinking I'm trying to create a method instead. </p>
  
  <pre><code>public Product(string code, string description, decimal price)
  {
      this.Code = code;
      this.Description = description; 
      this.Price = price;
  }
  </code></pre>
  
  <blockquote>
    <p>Error 1   Method must have a return type</p>
  </blockquote>
  
  <p>In my form, I tried to instantiate a object to go along with it.</p>
  
  <pre><code>ProductClass product1 = new Product("CS10", "Murach's C# 2010", 54.60m);
  </code></pre>
  
  <p>But it's still giving me an error. </p>
  
  <p>Why isn't my compiler recognizing that I'm trying to create a constructor instead of a method? Is it because I don't have a accessor property to go along with it? Thank you. </p>