Monday, 11 January 2016

Java Tutorial : Java Inner Classes(Access modifiers)


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

Click the below Image to Enlarge
Java Tutorial : Java Inner Classes(Access modifiers) 
OuterClass.java
public class OuterClass
{

    private int outerVariable = 10;

    /*
     * We can use the access specifiers private, public, protected and
     * package-private (no explicit modifier to restrict access to inner
     * classes.
     */
    public class InnerClass
    {
        int innerVariable = 2000;

    }

}
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/NestedClassDemo-AccessModifiers-App.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/NestedClassDemo-AccessModifiers-App/NestedClassDemo

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/d3069ae3fffccb0c6ba4336662b6a2619d880c61/BasicJava/NestedClassDemo-AccessModifiers-App/NestedClassDemo/?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