Create a data definition class
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!
You'll get a 613.0bytes .ZIP file.