03_BankSystemV1C语言程序设计精髓.pdf

//使用这些类 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;

文档评论(0)

1亿VIP精品文档

相关文档