/** * Transfer to Bank function * Transfers desired amount to bank * @param Checking amount - Checking object to transfer from * @param dollars - dollars to transfer from Checking * @param cents - cents to transfer from Checking */ void Checking::transfer_to_Bank(Checking &amount, Bank &amount2, int &dollars, int ¢s) { //calls withdrawal to deduct amount withdrawal(amount, dollars, cents); //calls banks deposit function to add the funds to the bank object Bank::deposit(amount2, dollars, cents); }
double Model_Checking::withdrawal(const Data& r, int account_id) { return withdrawal(&r, account_id); }