Coding Challenge: Create an Account Class
Let's extend the Account class and add new functionalities based on the given requirements.
We'll cover the following
Problem statement
Let’s build upon a previous account object exercise. A bank account is still defined by:
- A
name
property. - A
balance
property, initially set to 0. - A
credit()
method adding the value passed as an argument to the account balance. - A
describe()
method returning the account description.
Add properties and methods in the following class
:
Coding exercise
Get hands-on with 1400+ tech skills courses.