Click here to watch in Youtube :
https://www.youtube.com/watch?v=tlwpuaGlP-0&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge
Java Tutorial : Java method overriding(exception handling-Part2) |
class Animal { void eat() throws ArithmeticException { System.out.println("Animal is eating."); } } class Dog extends Animal { void eat() throws Exception { System.out.println("Dog is eating meat."); } }
https://sites.google.com/site/javaee4321/java/OverridingDemo_ExceptionHandling_V2_App.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/OverridingDemo_ExceptionHandling_V2_App/OverridingDemo
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/fa67e02bcd9efeae1c2ea3019677c5252e4db5f7/BasicJava/OverridingDemo_ExceptionHandling_V2_App/OverridingDemo/?at=master
See also:
No comments:
Post a Comment