Question: QUESTION 23 Write a custom exception class called UserOverPoweredException that is caused by the user entering an integer larger than 9000 for the variable power
QUESTION 23 Write a custom exception class called UserOverPoweredException that is caused by the user entering an integer larger than 9000 for the variable power level. The constructor should simply print the statement "That's not possiblel" and assign the variable a more reasonable int for a powerlevel. (Do not worry about calling or testing the class) For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). TTT Arial 3(12pt) T.E E
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
