title: Logic errors and syntax errors with inheritance
body: <p>What's wrong with this set of code?  I have errors and I can't find out what's wrong with it. Below is the logic for what I am trying to do. Can someone help me solve this?</p>
  
  <p><code>CustNum</code> says that it's hiding an inherited member and it's saying an error for the <code>Convert.ToInt32</code> line and the <code>new Customer()</code> method does not work. </p>
  
  <pre><code>using System;
  public class DebugEight01
  {
      public static void main()
      {
          Customer aRegularCustomer = new Customer();
          FrequentCustomer aFrequentCustomer = new Customer(); // I have an error here. 
          aRegularCustomer.CustNum = 2514;
          aRegularCustomer.CustBalance = 765.00;
          aFrequentCustomer.CustNum = 5719;
          aFrequentCustomer.CustBalance = 2500.00;
          aFrequentCustomer.DiscountRate = 0.15;   //15 % 
          Console.WriteLine("\naRegularCustomer #{0} owes {1}",
             aRegularCustomer.CustNum,
             aRegularCustomer.CustBalance = Convert.ToInt32; // I have an error here
          Console.WriteLine("\naFrequentCustomer #{0} would owe {1} without the discount",
             aFrequentCustomer.CustNum,
             aFrequentCustomer.CustBalance.ToString("C2"));
          double newBal = (1 - aFrequentCustomer.DiscountRate) *
             aFrequentCustomer.CustBalance;
          Console.WriteLine("...with {0} discount, customer owes {1}",
             aFrequentCustomer.DiscountRate.ToString("P"), newBal.ToString("C"));
      }
  }
  public class Customer
  {
      private int custNum;
      private double custBalance;
      public int CustNum
      {
          get
          {
              return custNum;
          }
          set
          {
              custNum = value;
          }
      }
      public double CustBalance
      {
          get
          {
              return custBalance;
          }
          set
          {
              CustBalance = value;
          }
      }
  }
  class FrequentCustomer : Customer
  {
      private double discountRate;
      public double DiscountRate
      {
          get
          {
              return discountRate;
          }
          set
          {
              discountRate = value;
          }
      }
      public int CustNum // I have an error here, it's hiding inherited member?
      {
          get
          {
              return base.CustNum;
          }
          set
          {
              CustNum = value;
          }
      }
  }
  </code></pre>