Last active
February 29, 2020 16:23
-
-
Save jbmilgrom/adcf2f8d9bcd59a912a1e1d5935db65f to your computer and use it in GitHub Desktop.
Example of mutative method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BankAccount { | |
... | |
public withdraw(amount) { | |
this.balance = this.balance - amount; | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment