Advertisement
raymondusk

Untitled

Nov 16th, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. //Kelas yang dipanggil
  2. public class Taksi extends Mobil{
  3.     protected int tarifAwal;
  4.     protected int tarifPerKM;
  5.  
  6.     public void setTarifAwal (int tarifAwal){
  7.         this.tarifAwal = tarifAwal;
  8.     }
  9.     public int getTarifAwal(){
  10.         return tarifAwal;
  11.     }
  12.     public void setTarifPerKM (int tarifPerKM){
  13.         this.tarifPerKM = tarifPerKM;
  14.     }
  15.     public int getTarifPerKM(){
  16.         return tarifPerKM;
  17.     }
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement