Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Ogrenci ogr1 = new Ogrenci();

            ogr1.Ogno = 5;
            ogr1.Ad   = "osman";
            ogr1.Boy  = 170;
            MessageBox.Show(ogr1.bilgioku());

            Ogretmen ogrt1 = new Ogretmen();

            ogrt1.Ad   = "tuncay";
            ogrt1.Kilo = 75;
            MessageBox.Show(ogrt1.bilgioku());
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Ogrenci ogr1 = new Ogrenci();

            ogr1.Ogno = 406;
            ogr1.Ad   = "Kıvanç";
            ogr1.Kilo = 65;
            ogr1.Boy  = 180;
            MessageBox.Show(ogr1.bilgioku());

            Ogretmen ogretmen1 = new Ogretmen();

            ogretmen1.Ad       = "Tuncay";
            ogretmen1.Boy      = 180;
            ogretmen1.Sacrengi = "Siyah";
            MessageBox.Show(ogretmen1.bilgioku());
        }