title: C# change type of child class in parent(abstract) class
body: <p>Code:</p>
  
  <pre><code>abstract class Parent{
      void changeChild(){
  
      }
  }
  class Child1: Parent{
  }
  class Child2: Parent{
  }
  //-----
  Parent parent = new Child1(); //instantiated as Child1
  parent.changeChild(); //change type of this class to Child2
  </code></pre>
  
  <p>so parent should be instance of Child2 class.</p>
  
  <p>I understand that Child1 can be different from Child2(more/less fields, methods), 
  but I just want to call constructor on this object, which is not allowed.</p>
  
  <p>simple</p>
  
  <pre><code>parent = new Child2();
  </code></pre>
  
  <p>could be done, but there is like 10 child classes(Growing) and I want to move this into parent class</p>
  
  <p>Is this somehow possible in c#? </p>
  
  <p>Thanks</p>