Class Account

java.lang.Object
AG_FinTrust.Account
All Implemented Interfaces:
AccountInterface, AG_FinTrustInterface
Direct Known Subclasses:
AccountDetails, PinServices

public class Account extends Object implements AccountInterface
AG_FinTrust - Account.java Handles creation and setup of new user bank accounts including personal details, balance initialization, and PIN setup.
Since:
August 02, 2025
Version:
2.0.0
Author:
Aditya Gupta
  • Field Details

    • account_number

      int account_number
  • Constructor Details

    • Account

      public Account()
  • Method Details

    • takeDetailsToCreateAccount

      void takeDetailsToCreateAccount()
    • createMyAccount

      public void createMyAccount(Connection conn)
      Specified by:
      createMyAccount in interface AccountInterface
    • isValidAge

      static boolean isValidAge(int age)
    • isValidGender

      static boolean isValidGender(String gender)
    • isValidContact

      static boolean isValidContact(long contact)
    • getAccountNumber

      int getAccountNumber(Connection connection)
    • printMyAccountReceipt

      void printMyAccountReceipt(int viewMyAccountNumber)
    • setPinNumberForMyAccount

      void setPinNumberForMyAccount(Connection conn, int viewMyAccountNumber)
    • isValidPin

      static boolean isValidPin(String str)