Created
March 17, 2013 20:33
-
-
Save naimakin/5183498 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Memur extends kisi{ | |
| private String gorev; | |
| public void evrakGetir(){ | |
| System.out.println("evraklari getiriyor"); | |
| } | |
| public void evrakGotur(){ | |
| System.out.println("evrakları al gotur"); | |
| } | |
| public String getGorev() { | |
| return gorev; | |
| } | |
| public void setGorev(String gorev) { | |
| this.gorev = gorev; | |
| } | |
| public void memurbilgisi(){ | |
| System.out.println("gorevi:"+gorev); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class kisi { | |
| private int tcno; | |
| private String ad; | |
| private String dt ; | |
| public void uyur(){ | |
| System.out.println("kisi uyuyo"); | |
| } | |
| public void gezer(){ | |
| System.out.println("kisi ayakta"); | |
| } | |
| public String getAd() { | |
| return ad; | |
| } | |
| public void setAd(String ad) { | |
| this.ad = ad; | |
| } | |
| public int getTcno() { | |
| return tcno; | |
| } | |
| public void setTcno(int tcno) { | |
| this.tcno = tcno; | |
| } | |
| public String getDt() { | |
| return dt; | |
| } | |
| public void setDt(String dt) { | |
| this.dt = dt; | |
| } | |
| public void kisibilgisi(){ | |
| System.out.println("ad="+ad+"tc:"+tcno+"dogum tarihi:"+dt); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ogrenci extends kisi{ | |
| private String memleket; | |
| private String bolum; | |
| private String Sinif; | |
| public void ders(){ | |
| System.out.println("ogrenci derste"); | |
| } | |
| public void kantin(){ | |
| System.out.println("ogrenci kantinde"); | |
| } | |
| public String getmemleket() { | |
| return memleket; | |
| } | |
| public void setmemleket(String memleket) { | |
| this.memleket = memleket; | |
| } | |
| public String getbolum() { | |
| return bolum; | |
| } | |
| public void setbolum(String bolum) { | |
| this.bolum = bolum; | |
| } | |
| public String getSinif() { | |
| return Sinif; | |
| } | |
| public void setsinif(String Sinif) { | |
| this.Sinif = Sinif; | |
| } | |
| public void ogrencibilgisi(){ | |
| System.out.println("memleket"+memleket+"\nbolum:"+bolum+"\nsinif"+Sinif); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ogretimgorevlisi extends Ogretmen{ | |
| private String alan; | |
| int yas; | |
| public String getalan() { | |
| return alan; | |
| } | |
| public void setalan(String ad) { | |
| this.alan = alan; | |
| } | |
| public int getyas() { | |
| return yas; | |
| } | |
| public void setAd(int yas) { | |
| this.yas = yas; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Ogretmen extends kisi{ | |
| private String sicilno; | |
| private String bolum; | |
| public String getsicilno() { | |
| return sicilno; | |
| } | |
| public void setsicilno(String sicilno) { | |
| this.sicilno = sicilno; | |
| } | |
| public String getbolum() { | |
| return bolum; | |
| } | |
| public void setbolum(String bolum) { | |
| this.bolum= bolum; | |
| } | |
| public void ders(){ | |
| System.out.println("hoca derste"); | |
| } | |
| public void sınav(){ | |
| System.out.println("hoca sınav yapiyo"); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class test { | |
| public static void main(String[] args){ | |
| ogrenci ogrn = new ogrenci(); | |
| Ogretmen ogrt = new Ogretmen(); | |
| Memur mmr =new Memur(); | |
| ogretimgorevlisi og = new ogretimgorevlisi(); | |
| ogrn.gezer(); | |
| ogrn.uyur(); | |
| ogrn.kantin(); | |
| ogrn.setTcno(571); | |
| ogrn.setAd("naim"); | |
| ogrn.setmemleket("Sarıkamış"); | |
| ogrn.setbolum("bilgisayar muh"); | |
| ogrn.setDt("1991"); | |
| ogrt.gezer(); | |
| ogrt.kisibilgisi(); | |
| ogrt.setAd("ismail"); | |
| ogrt.setbolum("bilgisayar muh"); | |
| ogrt.setsicilno("temiz"); | |
| ogrt.setDt("1984"); | |
| mmr.memurbilgisi(); | |
| mmr.setDt("ali"); | |
| mmr.setGorev("temizlik"); | |
| mmr.setTcno(456882); | |
| og.kisibilgisi(); | |
| og.setAd("ömer"); | |
| og.setAd(25); | |
| og.setalan("web "); | |
| og.setsicilno("456"); | |
| og.setbolum("bilgisayar muh"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment