2012420081
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author analita
*/
public class apotik {
String nama;
String jabatan;
String tugas;
void pekerja (){
System.out.println("karyawan Apotik");
}
}
class juned extends apotik{
void Nama (){
System.out.println("karyawan="+nama);
}
void Jabatan (){
System.out.println("jabatan="+jabatan);
}
void Tugas (){
System.out.println("tugas="+tugas);
}
}
class siti extends apotik{
void Nama (){
System.out.println("karyawan="+nama);
}
void Jabatan (){
System.out.println("jabatan="+jabatan);
}
void Tugas (){
System.out.println("tugas="+tugas);
}
}
class gentong extends apotik{
void Nama (){
System.out.println("karyawan="+nama);
}
void Jabatan (){
System.out.println("jabatan="+jabatan);
}
void Tugas (){
System.out.println("tugas="+tugas);
}
public static void main(String[] args) {
apotik x=new apotik();
juned a=new juned ();
a.nama="juned";
a.jabatan="kasir";
a.tugas="pelayan pasien";
a.Nama();
a.Jabatan();
a.Tugas();
System.out.println("==========================");
siti b=new siti ();
b.nama="siti";
b.jabatan="keuangan";
b.tugas="menghitung pendapatan apotik";
b.Nama();
b.Jabatan();
b.Tugas();
System.out.println("===========================");
gentong c=new gentong ();
c.nama="gentong youman";
c.jabatan="delivery ";
c.tugas="menghendel pengiriman obat wilayah mulyosari";
c.Nama();
c.Jabatan();
c.Tugas();
System.out.println("=============================");
}
}
Posted by 12.29 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar