1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * Created by leon on 1/10/18.
  3. */
  4. public class Product {
  5. String name;
  6. Double price;
  7. String id;
  8. Integer quantity;
  9. public Product(String name, Double price, String id, Integer quantity){
  10. this.name = name;
  11. this.price = price;
  12. this.id = id;
  13. this.quantity = quantity;
  14. }
  15. public void setName(String name){
  16. this.name = name;
  17. }
  18. public String getName(){
  19. return this.name;
  20. }
  21. public void setPrice(double price){
  22. this.price = price;
  23. }
  24. public Double getPrice(){
  25. return this.price;
  26. }
  27. public void setID(String id){
  28. this.id = id;
  29. }
  30. public String getID(){
  31. return this.id;
  32. }
  33. public void setQuantity(int quantity){
  34. this.quantity = quantity;
  35. }
  36. public Integer getQuantity(){
  37. return this.quantity;
  38. }
  39. }