in JAVA My inheritance class isn't inheriting.

The instructions are: Use inheritance to create an exception superclass called ExceptionA. ExceptionB inherits from ExceptionA. ExceptionC inherits from ExceptionB.  

Write a program to demonstrate that the catch block for type ExceptionA catches exceptions of types ExceptionB and ExceptionC. ExceptionA.java X ExceptionB.java x ExceptionC.java X ExceptionTest.java X Start Page X Source History public class ExceptionA extends Exception public ExceptionA(String message) 3 super (message); 4 7 t ExceptionA.java X Start Page ExceptionB.java X GAExceptionTest.java x X ExceptionCjava X History Source 1 2 public class ExceptionB extends ExceptionA ( public ExceptionB (String message) 3 4 super (message); 5 6 7 8 10 11 ExceptionB.java x Start Page X ExceptionA.java X ExceptionC.java X Exception Test.java x Source History 1 2 public class ExceptionC extends ExceptionB public ExceptionC (String message) 3 4 super (message); 5 7 1 8 10 ExceptionB.java Start Page ExceptionTest.java x X ExceptionA.java X X ExceptionC.java x Source History import java.util.Scanner 1 – 2 public class ExceptionTest { 4 5 public static void main (String [] args) Scanner input = new Scanner (System.in); 6 7 8 9 System.out.print (“What time is it? Enter the hour: “); 10 int hour inp .nextInt () = 11 12 System.out.print (“Enter the minutes: “) 13 int minute = input.nextInt (); 14 15 try if (hour >= 0 || hour < 24)| (minute >= 0 | minute = 24) 19 throw new ExceptionB (“The hour must be 0- 23.”); 20 21 } 22 else if (minute < 0 minute >=60) throw new ExceptionC (“The hour must be between 0- 59. “) 24 25 }catch (ExceptionA e) 26 System.out.println (e); 27 28 29 30 31 32 UL-… 41 U(….- o U—..- co1) -:c0–.. O UL-. a

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now