ariestamirra

taksi

Apr 30th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. package Transportasi;
  2.  
  3. public class Taksi extends Mobil {
  4.  
  5.     protected int tarifAwal;
  6.     protected int tarifPerKm;
  7.  
  8.     public void setTarifAwal(int tarifAwal) {
  9.         this.tarifAwal = tarifAwal;
  10.     }
  11.  
  12.     public int getTarifAwal() {
  13.         return tarifAwal;
  14.     }
  15.  
  16.     public void setTarifPerKm(int tarifPerKm) {
  17.         this.tarifPerKm = tarifPerKm;
  18.     }
  19.  
  20.     public int getTarifPerKm() {
  21.         return tarifPerKm;
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment