Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var alice = new Customer(456, "Alice", "Willams");
            alice.Checking.Amount=100m;
            alice.Checking.IsOpen = true;

            alice.Savings.Amount = 0m;
            alice.Savings.IsOpen = false;
            alice.Transfer(AccountTypes.Checking, 50m);
        }