title: what is the best practice of changing base object properties from inherited class
body: <p>I want to set "person" properties of student1 to person1. Is this possible doing it with assigning or any way without setting properties one by one ?      </p>
  
  <pre><code>static void Main(string[] args)
  {
    var student1 = new Student {Id = 1, Name = "kaya", Class = "3b", Number = "156"};
              var person1 = new Person { Id = 2, Name = "hasan" };
  
          }
  
  
      public class Person
      {
          public int Id { get; set; }
          public String Name { get; set; }
      }
  
      public class Student : Person
      {
          public int Number { get; set; }
          public String Class { get; set; }
      }
  </code></pre>