static void Main(string[] args) { // 开一个新的账户 Account account = new Account("Learning Hard"); // 进行交易 // 存钱 account.Deposit(1000.0); account.Deposit(200.0); account.Deposit(600.0); // 付利息 account.PayInterest(); // 取钱 account.Withdraw(2000.00); account.Withdraw(500.00); // 等待用户输入 Console.ReadKey(); }
public Friend(int good, Account love) { this.GoodWill = good; this.Account = love; }
private static void Main(string[] args) { Console.WriteLine("两个人刚认识"); Account account = new Account(0); Console.WriteLine("约吃饭"); account.Eat(); Console.WriteLine("慢慢交往,继续不停的约吃饭"); for (int i = 0; i < 5; i++) { account.Eat(); } account.Eat(); account.YueHui(); Console.ReadLine(); }
public SilverState(double balance, Account account) { this.Balance = balance; this.Account = account; Interest = 0.00; LowerLimit = 0.00; UpperLimit = 1000.00; }