Represents a simple bank account with basic operations. More...
#include <BankAccount.h>
Public Member Functions | |
std::strong_ordering | operator<=> (const BankAccount &other) const =default |
Public Attributes | |
AccountNumberBankType | accountType_ {} |
Indicates the type and ledger number of bank account. | |
BankName | name_ {} |
Represents the name of the associated financial institution for a bank account. | |
Represents a simple bank account with basic operations.
This class allows users to manage a bank account by performing actions such as depositing funds, withdrawing funds, and checking the account balance. It is designed for scenarios where basic financial account management is required.
Use this class to maintain an account's financial state and interact with its balance through a set of straightforward operations. You can create an account, deposit or withdraw funds, and obtain the current account balance.
|
default |
AccountNumberBankType drn::banking::BankAccount::accountType_ {} |
Indicates the type and ledger number of bank account.
This variable specifies whether the account is, for example, a savings account, checking account, or other types as implemented in the system.
BankName drn::banking::BankAccount::name_ {} |
Represents the name of the associated financial institution for a bank account.
This member variable serves as an identifier for the financial institution associated with the bank account. It ensures that each bank account is uniquely tied to its source institution, enabling clear and consistent usage in a variety of banking operations or financial reconciliations.
Use this member to store or retrieve the name of the financial institution when performing actions that require institution-specific identification, such as reconciliation, reporting, and interbank communication.