40 lines
734 B
Java
40 lines
734 B
Java
package dev.model;
|
|
|
|
public class MenuItem {
|
|
|
|
private int id;
|
|
private String name;
|
|
private String description;
|
|
private double price;
|
|
private String category;
|
|
|
|
|
|
public MenuItem(int id , String name , String description , double price , String category){
|
|
this.id = id;
|
|
this.name=name;
|
|
this.description=description;
|
|
this.price=price;
|
|
this.category=category;
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public double getPrice() {
|
|
return price;
|
|
}
|
|
|
|
public String getCategory() {
|
|
return category;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
} |