Create a constructor that takes in an integer and assigns this to a `balance` property. Create a method called `deposit` that takes in cash deposit amount and updates the balance accordingly. Create a method called `withdraw` that takes in cash withdrawal


#1



Replace this line with your code.


#2

Can I see your code?


#3

I suppose you mean that you don't get the following:


Create a constructor that takes in an integer and assigns this to a

balance

property. Create a method called `deposit` that takes in cash deposit 
amount and updates the balance accordingly. Create a method called 
`withdraw` that takes in cash withdrawal
  
  1. Python Syntax

Basically what it is trying to say is:

  1. Create a CONSTRUCTOR that takes in a number and assigns it to a balance property.

  2. Create a METHOD called deposit that takes in an amount and updates the balance.

  3. Create another METHOD called withdraw the takes in cash withdrawal

Simple. :smiley: Message me if you need anymore help. :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.