1234567891011121314151617181920212223242526272829303132333435363738394041 |
-
-
- /**
- * Created by leon on 1/10/18.
- */
- public class Product {
- private String ID;
- private int price;
- private int quantity;
-
- public Product(String ID, int price, int quantity){
- this.ID = ID;
- this.price = price;
- this.quantity = quantity;
- }
-
- public String getID(){
- return ID;
- }
-
- public void setID(String ID){
- this.ID = ID;
- }
-
- public int getPrice(){
- return price;
- }
-
- public void setPrice(int price){
- this.price = price;
- }
-
- public int getQuantity(){
- return quantity;
- }
-
- public void setQuantity(int quantity){
- this.quantity = quantity;
- }
- }
|