Skip to content

Commit

Permalink
Changed to regular class
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelspinto committed Jan 7, 2019
1 parent 93b5908 commit 76db486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/workshop/payment/CustomWallet.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package workshop.payment

case class CustomWallet(var balance: Int, maxAmount: Int = 1000) extends Wallet{
class CustomWallet(var balance: Int, maxAmount: Int = 1000) extends Wallet{
def remove(amount: Int): Int = {
if(amount > balance) {
throw new NotEnoughFundsException
Expand Down

0 comments on commit 76db486

Please sign in to comment.