Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package domain;
- public class Ingredient {
- private String name;
- private String description;
- private double price;
- private int maxAmountInStock;
- public Ingredient(String name, String description, double price, int maxAmountInStock){
- setName(name);
- setDescription(description);
- setPrice(price);
- setMaxAmountInStock(maxAmountInStock);
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- public double getPrice() {
- return price;
- }
- public void setPrice(double price) {
- this.price = price;
- }
- public int getMaxAmountInStock() {
- return maxAmountInStock;
- }
- public void setMaxAmountInStock(int maxAmountInStock) {
- this.maxAmountInStock = maxAmountInStock;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment