Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public class Items {
  2. private String id;
  3. private String name;
  4. private int price;
  5. private int stock;
  6.  
  7. public Items(String id, String name, int price, int stock) {
  8. // super();
  9. this.id = id;
  10. this.name = name;
  11. this.price = price;
  12. this.stock = stock;
  13. }
  14.  
  15. public String getId() {
  16. return id;
  17. }
  18.  
  19. public void setId(String id) {
  20. this.id = id;
  21. }
  22.  
  23. public String getName() {
  24. return name;
  25. }
  26.  
  27. public void setName(String name) {
  28. this.name = name;
  29. }
  30.  
  31. public int getPrice() {
  32. return price;
  33. }
  34.  
  35. public void setPrice(int price) {
  36. this.price = price;
  37. }
  38.  
  39. public int getStock() {
  40. return stock;
  41. }
  42.  
  43. public void setStock(int stock) {
  44. this.stock = stock;
  45. }
  46.  
  47.  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement