Exemple #1
0
        private static void testSimple()
        {
            Simple.Car iCar = new Simple.Car(2000, "Rover");
            Simple.House iHouse = new Simple.House(13000, "Becsi ut 103.");

            Simple.Person iPerson = new Simple.Person("Teszt Elek", 10);
            System.Console.WriteLine(iPerson);
            iPerson.addItem(iCar);
            iPerson.addItem(iHouse);
            System.Console.WriteLine(iPerson);

            iCar.accident(20);
            System.Console.WriteLine(iPerson);
            iHouse.addRoom(1500);
            System.Console.WriteLine(iPerson);
        }
 public WealthValueEventHandler(Person person)
 {
     this.person = person;
 }