1234567891011121314151617181920212223242526272829303132333435363738 |
-
- public class Product {
- int quantity;
- String id;
- double price;
-
- public Product(){
- quantity = -1;
- id = null;
- price = -1;
- }
-
- public int getQuantity(){
- return quantity;
- }
-
- public void setQuantity(int number){
- this.quantity = quantity+number;
- }
-
- public String getId(){
- return id;
- }
-
- public void setId(){
- this.id = id;
- }
-
- public double getPrice(){
- return price;
- }
-
- public void setPrice(){
- this.price = price;
- }
-
- }
|