title: Passing object of class in constructor of the same class
body: <p>How do you initialize a class like this with say StudentId = 1 and Name = "Alex"</p>
  
  <pre><code>class Student
  {
      public int StudentId { get; set; }
      public string Name { get; set; }
  
      public Student(Student student)
      {
          StudentId = student.StudentId;
          Name = student.Name;
      }
  }
  class Program
  {
      static void Main(string[] args)
      {
          Student s = new Student()
      }
  }
  </code></pre>