Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

can subclass method infere exceptions of its superclass method

Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
If the superclass method declares an exception, subclass overridden method can declare same, subclass exception or no exception but cannot declare parent exception.
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #subclass #method #infere #exceptions #superclass #method
ADD COMMENT
Topic
Name
5+3 =