-
Notifications
You must be signed in to change notification settings - Fork 0
/
motorcycle.java
34 lines (22 loc) · 975 Bytes
/
motorcycle.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
import javafx.beans.property.SimpleStringProperty;
public class motorcycle {
private SimpleStringProperty ID,Brand , Product , Colour;
public motorcycle(String id,String brand , String product , String colour){ // To insert new data to the database
this.ID = new SimpleStringProperty(id);
this.Brand = new SimpleStringProperty(brand);
this.Product = new SimpleStringProperty(product);
this.Colour = new SimpleStringProperty(colour);
}
public String getID(){
return ID.get();
} // Get the ID which is randomize
public String getBrand(){
return Brand.get();
} // Get the brand of motorcycle
public String getProduct(){
return Product.get();
} // Name of the motorcycle
public String getColour(){
return Colour.get();
} // Get the colour
}