-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCarClass.java
More file actions
73 lines (59 loc) · 1.58 KB
/
CarClass.java
File metadata and controls
73 lines (59 loc) · 1.58 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
70
71
72
73
/**
*
* @author Zach
*/
public class CarClass {
private String VIN;
private String manufacturer;
private String model;
private String color;
private double price;
private double milage;
public CarClass rightChild;
public CarClass leftChild;
public CarClass(String VIN, String manufacturer, String model, String color, double price, double milage){
this.VIN = VIN;
this.manufacturer = manufacturer;
this.model = model;
this.color = color;
this.price = price;
this.milage = milage;
}
// setters & getters
public String getVIN(){
return this.VIN;
}
public void setVIN(String newVIN){
this.VIN = newVIN;
}
public String getManufacturer(){
return this.manufacturer;
}
public void setMake(String newMake){
this.manufacturer = newMake;
}
public String getModel(){
return this.model;
}
public void setModel(String newModel){
this.model = newModel;
}
public String getColor(){
return this.color;
}
public void setColor(String newColor){
this.color = newColor;
}
public double getPrice(){
return this.price;
}
public void setPrice(double newPrice){
this.price = newPrice;
}
public double getMilage(){
return this.milage;
}
public void setMilage(double newMilage){
this.milage = newMilage;
}
}