Bank account

Report a typo

Implement the BankAccount class which receives two Longs called deposited and withdrawn in the constructor and sets these properties:

  • deposited (the copy),
  • withdrawn (the copy),
  • balance (the difference).
Write a program in Kotlin
// write the BankAccount class here
___

Create a free account to access the full topic