canPurchase method
Implementation
bool canPurchase() {
if (inventoryPolicy != null && inventoryPolicy == "continue") {
return true;
}
return inStock();
}
bool canPurchase() {
if (inventoryPolicy != null && inventoryPolicy == "continue") {
return true;
}
return inStock();
}