checking_sub.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:1k
源码类别:
C#编程
开发平台:
Visual C++
- //=====================================
- // checking_sub.cpp
- //=====================================
- #include<iostream>
- #include"checking_sub.h"
- //-------------------------------------
- Checking::Checking(string acntNo, double balan)
- :Savings(acntNo, balan), remittance(other){}
- //-------------------------------------
- void Checking::display()const{
- std::cout<<"Checking Account:"+acntNumber+" = "<<balance<<"n";
- }//------------------------------------
- void Checking::withdrawal(double amount){
- if(remittance==remitByPost) //信汇加收30元手续费
- amount += 30;
- else if(remittance==remitByCable) //电汇加收60元手续费
- amount += 60;
- Savings::withdrawal(amount);
- }//------------------------------------