Use object-oriented design to write and implement bank account class. The initial properties of the class are:
Fantastic news! We've Found the answer you've been seeking!
Question:
Use object-oriented design to write and implement bank account class.
The initial properties of the class are:
first_name
last_name
account_number
balance
The initial methods if the class are:
__init__()
__str__()
make_deposit()
make_withdrawal()
get_balance()
with these properties and methods, model a basic bank account. Start with a balance of zero, then implement the rest of the methods.
Requirements:
Set balance to: $100.00 (the initial balance before deposit/withdrawal)
Cannot make negative deposits (provide message to user if negative value is entered)
Cannot withdraw more than the balance (provide message to user if withdrawal is more than the balance).
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: