Visit www.myprogramminglab.com to complete this Programming Challenge online and get instant feedback.
RetailItem Exceptions
Programming required you to write a RetailItem class that holds data pertaining to a retail item. Write an exception class that can be instantiated and thrown when a negative number is given for the price. Write another exception class that can be instantiated and thrown when a negative number is given for the units on hand. Demonstrate the exception classes in a program.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here