Create a data definition class to model one product sold at a bakery

profileThehonest
 (Not rated)
 (Not rated)
Chat

Create a data definition class to model one product sold at a bakery. The product will have a description, cost, and quantity in stock. Instance methods include: accessors for each instance variable, non-validating mutators for each non-numeric instance variable, validating mutators for each numeric instance variable, and a special purpose method called sell. The sell method must accept an integer parameter indicating the product quantity to be purchased. Note: A product cannot be sold if there is not enough in stock. The bakery opens with 50 of each product in stock and all products are less than $5. Remember you are modeling ONE product only!

 

 

 

 

    • 10 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      product.zip