Created
January 12, 2011 10:23
-
-
Save sakti/775980 to your computer and use it in GitHub Desktop.
This file contains 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 Staff extends Karyawan { | |
private int lembur; | |
private double gajiLembur; | |
public void setLembur(int lembur) | |
{ | |
this.lembur=lembur; | |
} | |
public int getLembur() | |
{ | |
return lembur; | |
} | |
public void setGajiLembur(double gajiLembur) | |
{ | |
this.gajiLembur=gajiLembur; | |
} | |
public double getGajiLembur() | |
{ | |
return gajiLembur; | |
} | |
public double getGaji(int lembur,double gajiLembur) | |
{ | |
return super.getGaji()+lembur*gajiLembur; | |
} | |
public double getGaji() | |
{ | |
return super.getGaji()+lembur*gajiLembur; | |
} | |
public void lihatInfo() | |
{ | |
System.out.println("NIP :"+this.getNip()); | |
System.out.println("Nama :"+this.getNama()); | |
System.out.println("Golongan :"+this.getGolongan()); | |
System.out.println("Jml Lembur :"+this.getLembur()); | |
System.out.printf("Gaji Lembur :%.0f\n", this.getGajiLembur()); | |
System.out.printf("Gaji :%.0f\n",this.getGaji()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment