static void Main(string[] args) { BankCard card1 = new BankCard(); card1.SetCardNumber("123"); card1.SetCardNumber("12345678"); card1.AddMoney(50); card1.AddMoney(0.5); card1.PrintAccountBalance(); card1.SubtractMoney(50); card1.PrintAccountBalance(); card1.SubtractMoney(50); Console.WriteLine(); BankCard card2 = new BankCard(100, "Visa"); card2.SetCardNumber("xys"); card2.SetCardNumber("87654321"); card2.AddMoney(100); card2.PrintAccountBalance(); card2.SubtractMoney(200); card2.PrintAccountBalance(); card2.SubtractMoney(10); }
public static void Main(string[] args) { BankCard bankCard1 = new BankCard(); BankCard bankCard2 = new BankCard(200, "Maestro"); bankCard1.SetCardNumber("12345678"); bankCard2.SetCardNumber("42"); bankCard1.IncreaseBalance(75.52); bankCard1.PrintBalance(); bankCard1.DecreaseBalance(54.99); bankCard2.DecreaseBalance(252); Console.ReadLine(); }