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