#include <predatory_credit_card.h>
|
| PredatoryCreditCard (std::string cust, std::string bk, std::string acnt, int lim, double initial_bal, double rate) |
| Constructs a new predatory credit card.
|
|
void | process_month () |
|
bool | charge (double price) |
|
| CreditCard (std::string cust, std::string bk, std::string acnt, int lim, double initial_bal=0.0) |
| Constructs a new credit card. The initial balance is 0.0 by default.
|
|
std::string | get_customer () const |
| return the customer's name
|
|
std::string | get_bank () const |
| return the bank's name
|
|
std::string | get_account () const |
| return the account number as a string
|
|
int | get_limit () const |
| return the credit limit (measured in dollars)
|
|
double | get_balance () const |
| return the current balance (measured in dollars)
|
|
bool | charge (double price) |
|
void | make_payment (double amount) |
| Processes customer payment to reduce the balance.
|
|
◆ PredatoryCreditCard()
dsac::design::PredatoryCreditCard::PredatoryCreditCard |
( |
std::string |
cust, |
|
|
std::string |
bk, |
|
|
std::string |
acnt, |
|
|
int |
lim, |
|
|
double |
initial_bal, |
|
|
double |
rate |
|
) |
| |
|
inline |
Constructs a new predatory credit card.
◆ charge()
bool dsac::design::PredatoryCreditCard::charge |
( |
double |
price | ) |
|
|
inline |
◆ process_month()
void dsac::design::PredatoryCreditCard::process_month |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: