title: Trouble calling a base class and passing in the correct base constructor parameters
body: <p>I'm using an online teach-yourself-c# website testing my knowledge of inhereitence and this exercise I cant seem to resolve:</p>
  
  <p>question:</p>
  
  <blockquote>
    <ol>
    <li>Create a constructor on the base type Atom that accepts an integer named protons and an integer electrons. The constructor should set the values to the associated properties Protons and Electrons.</li>
    <li>Implement a derived type Hydrogen that inherits from Atom and provides the correct arguments for protons and electrons to the base constructor.</li>
    </ol>
  </blockquote>
  
  <p>Here is the code the exercise starts you with:</p>
  
  <pre><code>public class Atom
  {
      public int Protons { get; set; }
  
      public int Electrons { get; set; }
  }
  
  public class Program
  {
      public static void Main()
      {
  
      }
  }
  </code></pre>
  
  <p>Here is my solution code, it gets no compiler errors but the website is telling me it doesnt resolve question #2:</p>
  
  <pre><code>public class Atom
  {
      public Atom ( int protons, int electrons)
      {
          Protons = protons;
          Electrons = electrons;
      }
  
      public int Protons { get; set; }
      public int Electrons { get; set; }
  
  }
  
  public class Hydrogen : Atom
  {
      public Hydrogen() : base(1,1) { }
  
  }
  
  public class Program
  {
      public static void Main()
      {
          Hydrogen hydrogen = new Hydrogen();
      }
  }
  </code></pre>
  
  <p>The code compiles fine, but the website states that I have not completed the exercise as follows:</p>
  
  <blockquote>
    <p>Not all requirements have been met.</p>
    
    <p>You must call the base class, passing in the correct number of protons and
        electrons.</p>
  </blockquote>