You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
295 B
19 lines
295 B
package de.hs_fulda.ciip.projjpn;
|
|
|
|
public class Item {
|
|
|
|
// price
|
|
// customerReview
|
|
// productTitle
|
|
// description
|
|
// tags
|
|
int availability = 0;
|
|
|
|
public boolean inStock() {
|
|
return availability > 0;
|
|
}
|
|
|
|
public void updateAvailability(int newAmount) {
|
|
availability = newAmount;
|
|
}
|
|
}
|