forked from ChathuminaVimukthi/Object-Oriented-Programing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVehicle.java
More file actions
69 lines (64 loc) · 1.43 KB
/
Vehicle.java
File metadata and controls
69 lines (64 loc) · 1.43 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package vehicle.park; // importing vehicle package
public class Vehicle {
private String vehicleId;
private String vehicleBrand;
private String vehicleType;
private int year;
private int month;
private int date;
private int hours;
public Vehicle(String vehicleId, String vehicleBrand, String vehicleType, int year, int month, int date,
int hours) {
super();
this.vehicleId = vehicleId;
this.vehicleBrand = vehicleBrand;
this.vehicleType = vehicleType;
this.year = year;
this.month = month;
this.date = date;
this.hours = hours;
}
public String getVehicleId() {
return vehicleId;
}
public void setVehicleId(String vehicleId) {
this.vehicleId = vehicleId;
}
public String getVehicleBrand() {
return vehicleBrand;
}
public void setVehicleBrand(String vehicleBrand) {
this.vehicleBrand = vehicleBrand;
}
public String getVehicleType() {
return vehicleType;
}
public void setVehicleType(String vehicleType) {
this.vehicleType = vehicleType;
}
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
public int getMonth() {
return month;
}
public void setMonth(int month) {
this.month = month;
}
public int getDate() {
return date;
}
public void setDate(int date) {
this.date = date;
}
public int getHours() {
return hours;
}
public void setHours(int hours) {
this.hours = hours;
}
DateTime dateTime = new DateTime(year, month, date, hours);
}