Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.29 KB | None | 0 0
  1. class Account:
  2.     def __init__(self, AccountType, Balance, SSN, First, Last, AccountNumber):
  3. #       CreateAccount.CreateAccount.__init__(self, AccountType, InitialDeposit, SSN, First, Last)
  4.         self.AccountNumber = AccountNumber
  5.         AccountNumber = 0
  6.         AccountNumber = AccountNumber + 1
  7. class AccountCreator:
  8.     def __init__(self, AccountType, InitialDeposit, SSN, First, Last):
  9.       self.AccountType = AccountType
  10.       self.InitialDeposit = InitialDeposit
  11.       self.SSN = SSN
  12.       self.First = First
  13.       self.Last = Last
  14.     def CreateAccount(self):
  15.         return Account(AccountType=self.AccountType, Balance=self.InitialDeposit, SSN=self.SSN, First=self.First, Last=self.Last)
  16.  
  17. class Transaction:
  18.     def __init__(self, TransactionType, Amount, AccountNumber):
  19.       self.TransactionType = TransactionType
  20.       self.Amount = Amount
  21.       self.AccountNumber = AccountNumber
  22.  
  23. class Transfer:
  24.     def __init__(self, Amount, FromAccount, ToAccount):
  25.       self.Amount = Amount
  26.       self.FromAccount = FromAccount
  27.       self.ToAccount = ToAccount
  28.  
  29. class DisplayTotals:
  30.     def __init__(self, DisplayType, SSN):
  31.       self.DisplayType = DisplayType
  32.       self.SSN = SSN
  33.  
  34. Account1 = AccountCreator.CreateAccount("Savings", 500, 909329090, "Tom", "Smith")
  35. print(Account1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement