|
__init__(self,
owner,
interest_rate)
Creates a new account of the given customer. |
|
|
customer object
|
get_owner(self)
Returns the customer who owns the account. |
|
|
float
|
get_balance(self)
Returns the current balance of the account. |
|
|
|
deposit(self,
amount)
Deposits the given sum onto the account, assuming the given value is
positive. |
|
|
float
|
withdraw(self,
amount)
Tries to withdraw the given sum from the account, assuming the given
amount is positive. |
|
|
boolean
|
transfer_to(self,
another_account,
amount)
Transfers the given sum from this account to another given account,
assuming that there is sufficient money available in this account. |
|
|
float
|
|
|
set_interest_rate(self,
interest_rate)
Sets the interest rate of the account to a new value. |
|
|
|
add_interest(self)
Adds interest to the account according to the account's interest
rate. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|