Skip to contents

Returns the current balance of the account.

Usage

get_balance(x, ...)

Arguments

x

A BankAccount object or its subclass.

...

Additional arguments (not used).

Value

numeric. The current account balance.

Examples

account <- BankAccount("ACC123", "John Doe", 1000)
balance <- get_balance(account)