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
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).
Step by Step Solution
There are 3 Steps involved in it
Heres the implementation of the BankAccount class using objectoriented design Python class BankAccount def initself firstname lastname accountnumber selffirstname firstname selflastname lastname selfa... View full answer
Get step-by-step solutions from verified subject matter experts
