public Ogrenciii next() { Ogrenciii ogrenciii = (Ogrenciii)ogrenciiis[sayi]; sayi = sayi + 1; return(ogrenciii); }
void printogrenci(iterator iterator) { while (iterator.hasnext()) { Ogrenciii ogrenciii = iterator.next(); // Console.Write(ogrenciii.GetName() + ""); // Console.Write(ogrenciii.GetSoyad() + ""); // Console.Write(ogrenciii.GetTel() + ""); // Console.Write(ogrenciii.GetSinif() + ""); // Console.Write(ogrenciii.GetOrtalama() + ""); } }