-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharaba.java
More file actions
47 lines (36 loc) · 735 Bytes
/
araba.java
File metadata and controls
47 lines (36 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
public class araba{
private String model;
private int bas_km;
private int bit_km;
private int ucret;
public araba(String m){
model=m;
if(model=="BMW"){
ucret=120;}
else
ucret=150;
}
public void setBas_km(int x){
bas_km=x;
}
public void setBit_km(int x){
bit_km=x;
}
public void setUcret(int x){
ucret=x;
}
public int getBas_km(){
return bas_km;
}
public int getBit_km()
{
return bit_km;
}
public int getUcret() {
return ucret;
}
public int UcretHesapla(araba x){
int t=(bit_km-bas_km)*ucret;
return t;
}
}