title: Simple banking program with 2 methods that I can't quite resolve C#
body: <p>I'm creating a program that has these two methods that I can't quite figure out. They are 'withdraw' and 'deposit' and they're located in the CheckingAccount class.  In these methods, I want to initially have the value be 0 then add to it. Then I want to take the new number and subtract from it. I want to 'deposit' 250 dollars. Then I want to 'withdraw' 98 dollars. I'm not sure where to store these values and how to execute them. I have how the display should look at the end of this while I left the withdraw and deposit methods empty.</p>
  
  <p>Account Class:</p>
  
  <pre><code>class Account
  {
      protected string firstName;
      protected string lastName;
      protected long number;
  
      public string FirstName
      {
          set
          {
              firstName = value;
          }
      }
      public string LastName
      {
          set
          {
              lastName = value;
          }
      }
      public long Number
      {
          set
          {
              number = value;
          }
      }
      public override string ToString()
      {
          return firstName + " " + lastName + "\nAccount #: " + number;
      }
  }
  }
  </code></pre>
  
  <p>Checking Account Class:</p>
  
  <pre><code>    class CheckingAccount : Account
  {
      private decimal balance;
  
      public CheckingAccount(string firstName, string lastName, long number, decimal initialBalance)
      {
          FirstName = firstName;
          LastName = lastName;
          Number = number;
          Balance = initialBalance;
      }
      public decimal Balance
      {
          get
          {
              return balance;
          }
          set
          {
              balance = value;
          }
      }
  
  
      public void deposit(decimal amount)
      {
          //initial value should be 0 and should be adding 250 to it.
      }
      public void withdraw(decimal amount)
      {
          //this takes the 250 amount and subtracts 98 from it
      }
  
  
      public void display()
      {
          Console.WriteLine(ToString());
          Console.WriteLine("Balance: ${0}", Balance);
      }
  }
  }
  </code></pre>
  
  <p>Display class:</p>
  
  <pre><code>    class Display
  {
      static void Main(string[] args)
      {
  
          CheckingAccount check = new CheckingAccount("John", "Smith", 123456, 0M);
  
          Console.WriteLine("After Account Creation...");
          check.display();
  
          Console.WriteLine("After Depositing $250...");
          //constructor
          Console.WriteLine("After Withdrawing $98...");
          //constructor
      }
  }
  }
  </code></pre>
  
  <p>I want my output to look like such:</p>
  
  <p>After Account Creation...<br>
    John Smith<br>
    Account #: 123456<br>
    Balance: 0<br></p>
  
  <p>After Depositing $250...<br>
    John Smith<br>
    Account #: 123456<br>
    Balance: 250<br></p>
  
  <p>After Withdrawing $98...<br>
    John Smith<br>
    Account #: 123456<br>
    Balance: 152<br></p>