Nesne Tabanlı Programlama (Güz-2016) Hafta-12
interface sayigir { public int sayigetir(String str); } abstract class soyut{ public abstract boolean hesapla(int sayi); public void islem(int a,
Okumaya devam etinterface sayigir { public int sayigetir(String str); } abstract class soyut{ public abstract boolean hesapla(int sayi); public void islem(int a,
Okumaya devam etpublic abstract class ogrenci{ String[] harfler={“AA”,”BA”,”BB”,”CB”,”CC”,”DC”,”DD”,”FD”}; int[] sinirlar={90,80,70,60,50,40,35,30}; abstract int ortalamahesap(); /*int ortalamahesap() { return (int) (vizenot*0.4+finalnot*0.6 + 0.5); }*/
Okumaya devam etabstract class AlanHesapla { public abstract void alan(int a,int b); public void hesapla(int a, int b) { alan(a,b); } }
Okumaya devam et
Son yorumlar