Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Kelas yang dipanggil
- public class Taksi extends Mobil{
- protected int tarifAwal;
- protected int tarifPerKM;
- public void setTarifAwal (int tarifAwal){
- this.tarifAwal = tarifAwal;
- }
- public int getTarifAwal(){
- return tarifAwal;
- }
- public void setTarifPerKM (int tarifPerKM){
- this.tarifPerKM = tarifPerKM;
- }
- public int getTarifPerKM(){
- return tarifPerKM;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement