00001 using System; 00002 00006 public class CheckAccount: BankAccount { 00007 00012 public CheckAccount(string o, double ir): 00013 base(o, 0.0M, ir) { 00014 } 00015 00021 public CheckAccount(string o, decimal b, double ir): 00022 base(o, b, ir) { 00023 } 00024 00027 public override void Withdraw (decimal amount) { 00028 balance -= amount; 00029 if (amount < balance) 00030 interestRate = -0.10; 00031 } 00032 00034 public override string ToString() { 00035 return owner + "'s check account holds " + 00036 + balance + " kroner"; 00037 } 00038 }