Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement