Tugas Laporan 2

UML class diagram dari :

class acaraTV {
public String StasiunTV;
public String Acara;
public String setStasiunTV(){
return StasiunTV;
}
public void setStasiunTV (String StasiunTV){
this.StasiunTV=StasiunTV;
}
public String getAcara(){
return Acara;
}
public void getAcara(String Acara){
this.Acara=Acara;
}
public void cetak(){
System.out.println(“Acara”+Acara+”StasiunTV”+StasiunTV);
}
}
public class Stasiun {
public static void main (String [] args) {
acaraTV a=new acaraTV();
a.StasiunTV= ” indosiar “;
a.Acara= ” Sinetron “;
a.cetak();
}
}
 
uml class diagram
 

photographe

Tinggalkan Komentar

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s