Example #1
0
        //static void Zadatak3()
        //{
        //    CareTaker caretaker = new CareTaker();

        //    ToDoItem todoitem1 = new ToDoItem("Title1", "Text1", DateTime.Now);
        //    caretaker.AddState(todoitem1.StoreState());

        //    ToDoItem todoitem2 = new ToDoItem("Title2", "Text2", DateTime.Now);
        //    caretaker.AddState(todoitem2.StoreState());

        //    caretaker.ShowItems();
        //}
        static void Zadatak4()
        {
            CareTaker   caretaker    = new CareTaker();
            BankAccount bankaccount1 = new BankAccount("Mihael", "Koprivnica", 200);

            caretaker.AddState(bankaccount1.StoreState());

            BankAccount bankaccount2 = new BankAccount("Opet Mihael", "Koprivnica", 400);

            caretaker.AddState(bankaccount2.StoreState());

            caretaker.ShowItems();
        }