SHARE
TWEET

Untitled

a guest Sep 15th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. namespace BankAccount
  3. {
  4.     public abstract class Account
  5.     {
  6.         public float accountMoney;
  7.         //Transfer from checking to Savings
  8.        
  9.         //Close Account
  10.         public void CloseAccount()
  11.         {
  12.             accountMoney = 0;
  13.         }
  14.  
  15.  
  16.         //Create overdraw function and if business account make it more steep.
  17.         public bool CheckOverdraw()
  18.         {
  19.             if(accountMoney >= 0)
  20.             {
  21.                 return true;
  22.             }
  23.             else
  24.             {
  25.                 return false;
  26.             }
  27.    
  28.         }
  29.  
  30.         //
  31.  
  32.     }
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top