-
Notifications
You must be signed in to change notification settings - Fork 0
/
User_Account.py
47 lines (40 loc) · 1.65 KB
/
User_Account.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"""
Client Account Class:
A client account class consists of a dictionary of individual chequing, savings
and credit accounts. This class has the functionanilty that is provided with
managing multiple accounts as a client. These include:
Modifying Bank Balances
Deposits
Withdrawals
"""
from Bank_Account import BankAccount
class User_Class(BankAccount):
""""
An ABC client holds mutiple client accounts. A client must have the
following properties:
Attributes:
Client Number: An integer representing the client's's identity.
Client Account Name: A string representing the client's name.
Client Balance: A float maintaining the client's book balance.
Client Type: A string representing the type of client account, either
chequing, savings, or credit account.
"""
__accounts = dict()
def __deposit__(self, amount=0.0, source="", date=""):
"""
__deposit(self, amount, source, date): consumes an amount, date, deposit
description, and updates its
balance.
Side Effect: Print to I/O (asks for destination)
Time: O(1)
"""
pass
def __withdrawal__(self, amount=0.0, source="", date=""):
"""
withdrawal(self, amount, source, date): consumes withdrawal amount, date
and withdrawl description, and
updates its balance.
Side EffectsL Print to I/O (asks for destination)
Time: O(1)
"""
pass