2012420081
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author analita
*/
abstract class abstract_apotik2 {
abstract void nama();
abstract void jabatan();
abstract void tugas();
}
class junedabstract extends abstract_apotik2{
@Override
void nama (){
System.out.println("nama=juned immeot");
}@Override
void jabatan (){
System.out.println("jabatan=kasir youmanan");
}@Override
void tugas (){
System.out.println("tugas=pelayan pasien datang ");
}}
class sitiabstract extends abstract_apotik2{
@Override
void nama (){
System.out.println("nama=siti maimuna");
}
@Override
void jabatan (){
System.out.println("jabatan=keuangan apotik");
}
@Override
void tugas (){
System.out.println("tugas=mengatur keuangan apotik");
}}
class gentongabstract extends abstract_apotik2{
@Override
void nama (){
System.out.println("nama = adi gentong perman kal");
}
@Override
void jabatan (){
System.out.println("jabatan=delivery oder drug");
}
@Override
void tugas (){
System.out.println("tugas=menghendel pengiriman obat ");
}
public static void main(String[] args) {
junedabstract a=new junedabstract();
sitiabstract b=new sitiabstract();
gentongabstract c=new gentongabstract();
a.nama();a.jabatan();a.tugas();
System.out.println("===============================");
b.nama();b.jabatan();b.tugas();
System.out.println("================================");
c.nama();c.jabatan();c.tugas();
System.out.println("=================================");
}
}
Posted by 01.19 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar