Question: Define the exception class called TornadoException . The class should have two constructors including one default constructor. If the exception is thrown with the default
Define the exception class called TornadoException. The class should have two constructors including one default constructor. If the exception is thrown with the default constructor, the method getMessage should return
"Tornado: Take cover immediately!"
It need to be in java not c++
The other constructor has a single parameter, m, of int type. If the exception is thrown with this constructor, the getMessage should return
"Tornado: m miles away; and approaching!"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
