SHARE
TWEET

stadium1

a guest Apr 18th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package tubes2;
  2.  
  3. /**
  4.  *
  5.  * @author ADMIN
  6.  */
  7. public class Stadium1 extends Tubes2 {
  8.    
  9.     public String getBand() {
  10.         return Band;
  11.     }
  12.     public void setBand(String Band) {
  13.         this.Band = Band;
  14.     }
  15.     public String getJenis() {
  16.         return jenis;
  17.     }
  18.    
  19.     public void setJenis(String jenis) {
  20.         this.jenis = jenis;
  21.     }
  22.     public String getWarnatempat() {
  23.         return warnatempat;
  24.     }
  25.     public void setWarnatempat(String warnatempat) {
  26.         this.warnatempat = warnatempat;
  27.     }
  28.    
  29.     public int getHarga() {
  30.         return harga;
  31.     }
  32.    
  33.     public void setHarga(int harga) {
  34.         this.harga = harga;
  35.     }
  36.     public int getJumlah() {
  37.         return jumlah;
  38.     }  
  39.    
  40.     public void setJumlah(int jumlah) {
  41.         this.jumlah = jumlah;
  42.     }
  43.     public void tampil() {
  44.         System.out.println("Band\t: " + getBand());
  45.         System.out.println("Jenis\t: " + getJenis());
  46.         System.out.println("Warnatempat\t: " + getWarnatempat());
  47.         System.out.println("Harga\t: " + getHarga());
  48.         System.out.println("Jumlah\t: " + getJumlah());
  49.     }
  50.         public void total(){
  51.             System.out.println("total : "+(getJumlah()*getHarga()));  
  52.     }
  53.    
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top