Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Transportasi;
- 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