SHARE
TWEET

Untitled

a guest Apr 26th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Rumah;
  2.  
  3. public class DalamanRumah extends Rumah{
  4.     //deklarasi
  5.     private String Ruangan = "unknown";
  6.     private String Perabotan = "unknown";
  7.    
  8.     //Construktor
  9.     DalamanRumah(String NoRumah, String Alamat) {
  10.         super(NoRumah, Alamat);
  11.     }
  12.    
  13.     DalamanRumah(String NoRumah, String Alamat, String Ruangan, String Perabotan) {
  14.         super.setNoRumah(NoRumah);
  15.         super.setAlamat(Alamat);
  16.        
  17.         this.Ruangan = Ruangan;
  18.         this.Perabotan = Perabotan;
  19.     }
  20.    
  21.     //getter
  22.     public String getNoRumah() {
  23.         return super.getNoRumah();
  24.     }
  25.    
  26.     public String Alamat() {
  27.         return super.getAlamat();
  28.     }
  29.    
  30.     public String Ruangan() {
  31.         return Ruangan;
  32.     }
  33.    
  34.     public String Perabotan() {
  35.         return Perabotan;
  36.     }
  37. }
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
 
Top