Skip to contents

Prints detailed information about the account including account number, holder name, balance, and account type.

Usage

get_account_info(x, ...)

Arguments

x

A BankAccount object or its subclass.

...

Additional arguments (not used).

Value

NULL (prints information to console).

Examples

account <- BankAccount("ACC123", "John Doe", 1000)
get_account_info(account)
#> === Account Information ===
#> Account Number: ACC123
#> Account Holder: John Doe
#> Current Balance: $1000.00
#> Account Type: s7examples::BankAccount
#> ===========================