Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Account:
- def __init__(self, AccountType, Balance, SSN, First, Last, AccountNumber):
- # CreateAccount.CreateAccount.__init__(self, AccountType, InitialDeposit, SSN, First, Last)
- self.AccountNumber = AccountNumber
- AccountNumber = 0
- AccountNumber = AccountNumber + 1
- class AccountCreator:
- def __init__(self, AccountType, InitialDeposit, SSN, First, Last):
- self.AccountType = AccountType
- self.InitialDeposit = InitialDeposit
- self.SSN = SSN
- self.First = First
- self.Last = Last
- def CreateAccount(self):
- return Account(AccountType=self.AccountType, Balance=self.InitialDeposit, SSN=self.SSN, First=self.First, Last=self.Last)
- class Transaction:
- def __init__(self, TransactionType, Amount, AccountNumber):
- self.TransactionType = TransactionType
- self.Amount = Amount
- self.AccountNumber = AccountNumber
- class Transfer:
- def __init__(self, Amount, FromAccount, ToAccount):
- self.Amount = Amount
- self.FromAccount = FromAccount
- self.ToAccount = ToAccount
- class DisplayTotals:
- def __init__(self, DisplayType, SSN):
- self.DisplayType = DisplayType
- self.SSN = SSN
- Account1 = AccountCreator.CreateAccount("Savings", 500, 909329090, "Tom", "Smith")
- print(Account1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement