Created
April 30, 2019 06:23
-
-
Save Edijun/c6f82e2eb9763d791555897e58903f8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Product { | |
private String id; | |
private String name; | |
private Integer price; | |
private String description; | |
public Product(String id, String name, Integer price, String description) { | |
super(); | |
this.id = id; | |
this.name = name; | |
this.price = price; | |
this.description = description; | |
} | |
public Product() { | |
super(); | |
// TODO Auto-generated constructor stub | |
} | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public Integer getPrice() { | |
return price; | |
} | |
public void setPrice(Integer price) { | |
this.price = price; | |
} | |
public String getDescription() { | |
return description; | |
} | |
public void setDescription(String description) { | |
this.description = description; | |
} | |
@Override | |
public String toString() { | |
return "Product [id=" + id + ", name=" + name + ", price=" + price + ", description=" + description + "]"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment