Question: -create class name item: itemID: int itemPrice: double itemName: String Quantity: int -create setter and getter for each -constructor= Item ( itemID: int, itemPrice: double,
-create class name item: itemID: int itemPrice: double itemName: String Quantity: int
-create setter and getter for each
-constructor= Item ( itemID: int, itemPrice: double, itemName: String)
-constructor=Item ()
NOTE; 1-the default values are: ID: 2006787 Price: 8, Name: RAYAN
2-Make sure that the price can NOT be zero or negative
3-To calculate the bill: multiply the item price by quantity
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
