title: Does not contain constructor & Non-invocable member Class C#
body: <p>I'm trying to create a simple class by referring to a YouTube video, but I get errors.</p>
  <p>Here are the errors:
  <img src="https://i.stack.imgur.com/q5M7f.png" alt="Error" /></p>
  <p>And here is my code:</p>
  <pre><code>public class Student
  {
      public int stdAge;
      public int stdiD;
      public string stdCitizenship;
  
      public void printStudent()
      {
          Console.WriteLine(&quot;Student Age: &quot; + stdAge);
          Console.WriteLine(&quot;Student ID: &quot; + stdiD);
          Console.WriteLine(&quot;Student Citizenship:&quot; + stdCitizenship);
  
      }
  
  }
  
  
  class Program
  {
      static void Main(string[] args)
      {
          Student std1 = new Student(&quot;Roslin Hashim&quot;);
  
  
          std1.stdAge(26);
          std1.stdiD(520308);
          std1.stdCitizenship(&quot;Malaysia&quot;);
          std1.printStudent();
      }
  }
  </code></pre>
  <p>How do I know what the problem is and how to fix it?</p>