Product.java 704B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * Created by leon on 1/10/18.
  3. */
  4. public class Product {
  5. private String ID;
  6. private int price;
  7. private int quantity;
  8. public Product(String ID, int price, int quantity){
  9. this.ID = ID;
  10. this.price = price;
  11. this.quantity = quantity;
  12. }
  13. public String getID(){
  14. return ID;
  15. }
  16. public void setID(String ID){
  17. this.ID = ID;
  18. }
  19. public int getPrice(){
  20. return price;
  21. }
  22. public void setPrice(int price){
  23. this.price = price;
  24. }
  25. public int getQuantity(){
  26. return quantity;
  27. }
  28. public void setQuantity(int quantity){
  29. this.quantity = quantity;
  30. }
  31. }