Skip to contents

Adds a specified amount to the account balance.

Usage

deposit(x, ...)

Arguments

x

A BankAccount object or its subclass.

...

Additional arguments passed to methods.

Value

The modified account object (invisibly).

Examples

account <- BankAccount("ACC123", "John Doe", 1000)
deposit(account, 500)
#> Deposited $500.00. New balance: $1500.00