38 lines
737 B
Java
38 lines
737 B
Java
package domain;
|
|
|
|
public class Product {
|
|
private String name;
|
|
private String description;
|
|
private float price;
|
|
private int weight;
|
|
private int bestand;
|
|
|
|
public Product(String name, String description, float price, int weight, int bestand) {
|
|
this.name = name;
|
|
this.description = description;
|
|
this.price = price;
|
|
this.weight = weight;
|
|
this.bestand = bestand;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public float getPrice() {
|
|
return price;
|
|
}
|
|
|
|
public int getWeight() {
|
|
return weight;
|
|
}
|
|
|
|
public int getBestand() {
|
|
return bestand;
|
|
}
|
|
}
|