//使用这些类
public class BankDemo {
public static void Main(string [] args)
{
Bank bank = new Bank ();
bank.OpenAccount(2222, 2222, 20);
bank.OpenAccount(3333, 3333, 50);
ATM atm = new ATM (bank);
for( int i=0; i5; i++)
{
atm.Transaction();
}
}
}
//账号类
public class Account {
double money; //decimal money;
string id;
string pwd;
//string name;
public Account( string id, string pwd, double money )
{
//if( money 0 ) throw new Exception();
this.id = id;
您可能关注的文档
最近下载
- 大型原油储罐构件预制方法.PDF VIP
- 期权开户考试题库(完整版含详细答案解析).docx VIP
- 中通纯电动客车用户手册.pdf VIP
- 2026年山东启阳生态发展集团有限公司及权属子公司公开招聘工作人员(13人)笔试备考试题及答案解析.docx VIP
- 人教版七年级上册数学期末复习:第3、4章+期末共3套试卷汇编(Word版,含答案).docx VIP
- 2026年山东启阳生态发展集团有限公司及权属子公司公开招聘工作人员(13人)考试参考题库及答案解析.docx VIP
- 2026年山东启阳生态发展集团有限公司及权属子公司公开招聘工作人员(13人)考试备考试题及答案解析.docx VIP
- 居家护理知情同意书.docx VIP
- 2026中食金安(石家庄)供应链科技有限责任公司公开招聘工作人员28名考试备考题库及答案解析.docx VIP
- 军事理论教程(慕课版)全套PPT课件.pptx
原创力文档

文档评论(0)