-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCarmodel.java
45 lines (39 loc) · 895 Bytes
/
Carmodel.java
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
package hello;
public class Carmodel {
public int id;
public String brand;
public String model;
public int price;
public Carmodel(int id, String brand, String model, int price) {
this.brand = brand;
this.model = model;
this.price = price;
this.id = id;
}
public Carmodel() {
}
public String getBrand() {
return brand;
}
public void setBrand(String brand) {
this.brand = brand;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public int getid() {
return id;
}
public void setid(int id) {
this.id = id;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
}