csharp-3/object-initialization-simple-1/Client.cs - A client of the simple BankAccount with object initializers. | Lecture 5 - slide 10 : 29 Program 2 |
using System; public class Client { public static void Main(){ BankAccount ba1 = new BankAccount{Owner = "James", Balance = 250}, ba2 = new BankAccount{Owner = "Bill", Balance = 1200}; Console.WriteLine(ba1); Console.WriteLine(ba2); } }