This project does not contain a full, runnable application
program. Instead, the only package src.account
contains two classes which represent basic bank customer and
account information.
The following is known about customer objects, i.e., instances of class Customer
.
Customer
, giving a customer ID number (an integer)
and the customer's name (a string) as parameters. E.g. Customer(98765, "Connie Customer")
.
The following is known about account objects, i.e., instances of class Account
.
Account
, giving the customer object who owns
the account as a parameter.
get_balance
which takes no parameters and
returns the current balance (Finnish: "saldo") of the account.
deposit
which places in the account an amount of
money (euros) that is given as a parameter. E.g. account.deposit(65.5)
.
withdraw
which takes away from the account an amount of
money (euros) that is given as a parameter.
transfer_to
which takes two parameters: a target account
object and a sum of money. It transfers that sum from the account whose method is called into the account
given as a parameter. E.g. some_account.transfer_to(another_account, 100.0)
.
None.
As this project is not a full program, and has no user interface, it can not be run as an application like the Butler project, for instance, can.
You can experiment with the classes Account
and Customer
. Creating a main
method for further testing of these classes is left as
an exercise.