Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CurrentAccount

Class representing a CurrentAccount

Hierarchy

Index

Constructors

constructor

Properties

Protected _balance

_balance: number = 0

The balance of the bank account.

Private _creditLine

_creditLine: number = 0

Credit Line of the account

Protected _holder

_holder: Person

The holder of the bank account.

accountNumber

accountNumber: string

The account number of the bank account.

Accessors

balance

  • get balance(): number

creditLine

  • get creditLine(): number
  • set creditLine(amount: number): void
  • Get Credit Line of the account

    Returns number

    • Credit Line of the account
  • Set Credit Line for the account

    throws
    • Credit line amount must be positive

    Parameters

    • amount: number

      Amount for Credit Line

    Returns void

    • Credit Line of the account

holder

Methods

applyInterests

  • applyInterests(): void

deposit

  • deposit(amount: number): void

withdrawal

  • withdrawal(amount: number): void
  • Perform withdrawal on the account

    throws
    • Withdrawal amount must be positive
    throws
    • Your withdrawal exceeds the authorized limit

    Parameters

    • amount: number

      The amount to withdraw

    Returns void

Generated using TypeDoc