SHARE
TWEET

Pegawai

GSculerlor Oct 12th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Penggajian;
  2.  
  3. public class Pegawai {
  4.     public String nip, nama, alamat;
  5.    
  6.     public Pegawai() {
  7.        
  8.     }
  9.    
  10.     public Pegawai(String nip, String nama, String alamat) {
  11.         this.nip = nip;
  12.         this.nama = nama;
  13.         this.alamat = alamat;
  14.     }
  15.    
  16.     public void setNama(String nama) {
  17.         this.nama = nama;
  18.     }
  19.    
  20.     public String getNama() {
  21.         return this.nama;
  22.     }
  23.    
  24.     public int getGaji() {
  25.         return 1500000;
  26.     }
  27. }
RAW Paste Data
Top