示例#1
0
        public void Visit(Oge oge)
        {
            Calisan calisan = oge as Calisan;

            calisan.TatilGunu += 3;
            Console.WriteLine("{0} -> {1} --> {2} gun tatil", calisan.GetType().Name, calisan.Ad, calisan.TatilGunu);
        }
示例#2
0
        public void Visit(Oge oge)
        {
            Calisan calisan = oge as Calisan;

            calisan.Gelir *= 1.10;
            Console.WriteLine("{0} -> {1} --> {2:C}", calisan.GetType().Name, calisan.Ad, calisan.Gelir);
        }