Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add a public withdraw method to your class that takes two parameters, pin_number and amount. If pin_number matches pin, your method should subtract the amount from the balance and puts "Withdrew #{amount}. New balance: $#{@balance}." Otherwise, it should puts pin_error.
Advertisement
Add Comment
Please, Sign In to add comment