Class Account
Private Data Members:
static int genId
int accountId
double balance
double annualInterestRate
Static data member used to assign value to accountId;
Account ID
Current Balance of the account
Current Annual Interest Rate of the Account (ex. 4.5)
Public Member Functions:
Account()
Account(int id, double bal, doubleinterest)
Constructors:
Default Constructor (no parameters)
Overloaded Constructor: Three-Parameter Constructor
Public Member Functions:
void setAccountId (int x)
void setBalance(double x)
void setInterest(double x)
Setters:
Function sets id to x
Function sets balance to x
Function sets annualInterestRate to x
Public Member Functions:
int getAccountId()
double getBalance()
double getInterest()
static double getGenId()
Getters:
Function returns accountId
Function returns balance
Function returns annualInterestRate
Static Function used to returns genId
Public Member Functions:
double getMonthlyInterestRate()
Function calculates the monthly interest rate and returns thevalue
doublegetMonthlyInterest()
Function calculates the amount earned per month from interestand
PayPal Gateway not configured
PayPal Gateway not configured