2012420098
INTERFACE_INFO PEMAIN
*/
interface interface_bolla3 {
}
interface interfacepemainbola{
void pemain();
}
interface interfacedelpiero{
void namadelpiero();
void clubjuventus ();
void posisipenyerang();
}
interface interfacerobben{
void namarobben();
void clubbayermunchen();
void posisisayap();
}
interface interfaceball{
void namaball();
void clubspurs();
void posisisayapkanan();
}
class bola implements interfacepemainbola,interfacedelpiero,interfacerobben,interfaceball{
@Override
public void pemain(){
System.out.println("pemain hebat dunia masa kinI");
}
@Override
public void namadelpiero(){
System.out.println("nama=alexandro delpiero");
}
@Override
public void clubjuventus(){
System.out.println("club=juventus");
}
@Override
public void posisipenyerang(){
System.out.println("posisi=penyerang tunggal");
}
@Override
public void namarobben(){
System.out.println("nama=arjen robben");
}
@Override
public void clubbayermunchen(){
System.out.println("club=bayermunchen");
}@Override
public void posisisayap(){
System.out.println("posisi=sayap kanan n second penyerang");
}
@Override
public void namaball(){
System.out.println("nama=gerth ball");
}
@Override
public void clubspurs(){
System.out.println("club=spurs");
}
@Override
public void posisisayapkanan(){
System.out.println("posisi=sayapkiri");
}
}
class youman{
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
bola x=new bola();
x.pemain();
System.out.println("-------------------------------------------------- ");
bola a=new bola();
a.namadelpiero();a.clubjuventus();a.posisipenyerang();
System.out.println("---------------------------------");
bola b=new bola();
b.namarobben();b.clubbayermunchen();b.posisisayap();
System.out.println("---------------------------------");
bola c=new bola();
c.namaball();c.clubspurs();c.posisisayap();
System.out.println("---------------------------------");
}
}
Posted by 01.12 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar