Beispiel #1
0
        public void initDefault()
        {
            var a0 = new Account(2345234, AccountType.Chequings);
            a0.deposit(400.00f, DateTime.Parse("June 8 2015"));
            a0.withdraw(20f, DateTime.Parse("June 12 2015"));

            var a1 = new Account(9954, AccountType.Savings);
            a1.deposit(63.32f, DateTime.Parse("July 4 2015"));
            a1.deposit(600.00f, DateTime.Parse("Oct 9 2015"));

            var p0 = new Person("Yuriy", "1234", "5678");
            p0.addAccount(a0); p0.addAccount(a1);
            People.Add(p0);
        }
Beispiel #2
0
        public void initDefault()
        {
            var a0 = new Account(2345234, AccountType.Chequings);
            a0.deposit(400.00f, "June 8th 2015");

            var a1 = new Account(9954, AccountType.Savings);
            a1.deposit(63.32f, "July 4th 2015");

            var p0 = new Person("Yuriy", 0, "0");
            p0.addAccount(a0); p0.addAccount(a1);
            People.Add(p0);
        }
Beispiel #3
0
 public void transferTo(float delta, Account accnt, DateTime date)
 {
     this.withdraw(delta, date) ; accnt.deposit(delta, date);
 }