| A client of the funny BankAccount. | Lecture 0 - slide 22 : 25 Program 2 |
using System;
class C{
public static void Main(){
BankAccount ba = new BankAccount("Peter", 1000);
Console.WriteLine(ba);
Console.WriteLine("Balance = {0}", ba.Balance);
Console.WriteLine(ba);
ba.Balance += 100;
Console.WriteLine(ba);
}
} |