Beispiel #1
0
        static void Main(string[] args)
        {
            //IlkOrnekler();
            Insan insan1       = new Insan();
            Insan ogreteninsan = new Ogretmen();

            ogreteninsan.Yas = 19;

            YasiArtir(ogreteninsan);

            Console.WriteLine(ogreteninsan.Yas);

            Console.ReadLine();
        }
Beispiel #2
0
        private static void IlkOrnekler()
        {
            Ogretmen ogrt = new Ogretmen();

            ogrt.Adi = "Selami";
            ogrt.AdinNe();

            Console.Read();

            ogrt.Adi = "Ahmet";

            Ogrenci ogrc = new Ogrenci();

            ogrc.Adi = "Mehmet";

            ogrt.AdinNe();
            ogrc.AdinNe();

            Console.ReadLine();

            //  Canli.Kaplan k = new Canli.Kaplan();

            //   k.Turu = "asdfasd";
        }