示例#1
0
        private PolisMerkezi(int x, int y) : base(x, y)
        {
            _polisler = new List <IPolis>();

            _polisler.Add(new Polis("turkalp burak", "kayrancioglu", new Konum(x, y)));
            _polisler.Add(new Polis("ali", "duzgitmis", new Konum(x, y)));
            _polisler.Add(new Polis("hasan", "duzgidecekmisti", new Konum(x, y)));
            _polisler.Add(new Polis("kemal", "duzgitmeliymis", new Konum(x, y)));
            _polisler.Add(new Polis("salah", "duzgidebilir", new Konum(x, y)));

            AtanamayanOgretmen atanamayanOgretmen = new AtanamayanOgretmen("ismail", "gitmis", new Konum(x, y));

            _polisler.Add(new PolisAdapter(atanamayanOgretmen));
        }
 public PolisAdapter(AtanamayanOgretmen atanamayanOgretmen) : base(atanamayanOgretmen.Ad, atanamayanOgretmen.Soyad, atanamayanOgretmen.Konum)
 {
     ogretmenPolis = atanamayanOgretmen;
 }