2012420079
MUSIK UNTUK BHERTY
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author analita
*/
interface interface_MUSIK3{
}
interface interfaceKOTAK{
void namaKOTAK();
void aliranROCK();
void laguBERAKSI();
}
interface interfaceUNGU{
void namaUNGU();
void aliranPOP();
void laguSAYANG();
}
interface interfaceNOAH{
void namaNOAH();
void aliranPOP1();
void laguPUISIBERTTY();
}
class BHERTY implements interfaceKOTAK,interfaceUNGU,interfaceNOAH{
@Override
public void namaKOTAK(){
System.out.println("nama=kotak berty");
}
@Override
public void aliranROCK(){
System.out.println("aliran=rocker bherty");
}
@Override
public void laguBERAKSI(){
System.out.println("lagu=bherty beraksi");
}
@Override
public void namaUNGU(){
System.out.println("nama=ungu");
}
@Override
public void aliranPOP(){
System.out.println("aliran=pop bherty");
}
@Override
public void laguSAYANG(){
System.out.println("lagu=sayang bherty");
}
@Override
public void namaNOAH(){
System.out.println("nama=naoah man");
}
@Override
public void aliranPOP1(){
System.out.println("aliran=pop bherty");
}
@Override
public void laguPUISIBERTTY(){
System.out.println("lagu=puisi untuk bherty");
}}
class BHERTY1{
public static void main(String[] args) {
BHERTY x=new BHERTY();
x.namaKOTAK(); x.aliranROCK(); x.laguBERAKSI();
System.out.println("------------------------------");
x.namaUNGU();x.aliranPOP();x.laguSAYANG();
System.out.println("------------------------------");
x.namaNOAH();x.aliranPOP1();x.laguPUISIBERTTY();
System.out.println("---------------------------------");
}
}
Posted by 02.06 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar