Friday 29 January 2016

Java Tutorial : Java Super Keyword (Invoke super class default constructor-compiler)


Click here to watch in Youtube :
https://www.youtube.com/watch?v=rRPicPJVSOk&list=UUhwKlOVR041tngjerWxVccw

Click the below Image to Enlarge
Java Tutorial : Java Super Keyword (Invoke super class default constructor-compiler) 
SuperClass.java
public class SuperClass
{

    public SuperClass()
    {
        System.out.println("Inside SuperClass default Constructor");
        
    }

}
SubClass.java
public class SubClass extends SuperClass
{

    public SubClass()
    {
        System.out.println("Inside SubClass default Constructor");
    }

}
SuperTest.java
public class SuperTest
{

    public static void main(String[] args)
    {
        SubClass subClassObj = new SubClass();
    }
}
Output
Inside SuperClass default Constructor
Inside SubClass default Constructor
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/SuperKeywordDemo_invoke_defaultCons_Compiler_App.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/SuperKeywordDemo_invoke_defaultCons_Compiler_App

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/d8bcbd739d9d2ceaeec7ee56b1959925c6ec69d4/BasicJava/SuperKeywordDemo_invoke_defaultCons_Compiler_App/?at=master

See also:
  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment