2012420079
ABSTRACT
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author analita
*/
abstract class musik2 {
abstract void nama();
abstract void aliran();
abstract void lagu();
}
class panggung extends musik2{
@Override
void nama (){
System.out.println("nama=kangen band");
}@Override
void aliran(){
System.out.println("aliran=melayu youmanan");
}@Override
void lagu (){
System.out.println("lagu= pujaan hati");
}}
class konser extends musik2{
@Override
void nama (){
System.out.println("nama=armada band");
}
@Override
void aliran (){
System.out.println("aliran= pop man");
}
@Override
void lagu (){
System.out.println("lagu= buka hatimu");
}}
class personil extends musik2{
@Override
void nama (){
System.out.println("nama = ungu");
}
@Override
void aliran(){
System.out.println("aliran=pop");
}
@Override
void lagu (){
System.out.println("lagu=demi waktu ");
}
public static void main(String[] args) {
panggung a=new panggung();
konser b=new konser();
personil c=new personil();
a.nama(); a.aliran(); a.lagu();
System.out.println("=====================");
b.nama(); b.aliran(); b.lagu();
System.out.println("======================");
c.nama(); c.aliran(); c.lagu();
System.out.println("========================");
}
}
Posted by 01.29 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar