title: Can a child class fields be used in parent class?
body: <p>Is there any way to use the child class fields or properties inside parent class constructor or methods?</p>
  
  <pre><code>public class Parent
  {
      public Parent()
      {
  
      }
  }
  public class Child : Parent
  {
      public int y;
      public Child()
      {
  
      }
  }
  class Program
  {
      static void Main(string[] args)
      {
          Parent obj = new Child();
          obj.y = 10;
      }
  }
  </code></pre>
  
  <p>In the above code i can't access the field 'y'</p>