SHARE
TWEET

EmployeeTest

Ramdan51-062 Oct 12th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class EmployeeTest
  2. {
  3.     public static void main(String[] args){
  4.         Staff s1=new Staff();
  5.         s1.setNama("Putu");
  6.         s1.setKehadiran(20);
  7.        
  8.         Dosen d1 = new Dosen();
  9.         d1.setNama("Dharmadi");
  10.         d1.setSKS(14);
  11.        
  12.         Employee p1 = new Employee();
  13.         p1.setNama("Kadek");
  14.        
  15.         DaftarGaji daftar_gaji=new DaftarGaji(3);
  16.         daftar_gaji.addPegawai(s1);
  17.         daftar_gaji.addPegawai(d1);
  18.         daftar_gaji.addPegawai(p1);
  19.         daftar_gaji.printSemuaGaji();
  20.     }
  21.  
  22.     }
RAW Paste Data
Top