Skip to content

In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class. Syntax. Following is the syntax to write a nested class.

Notifications You must be signed in to change notification settings

codermahadi/InnerClassDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InnerClassDemo

In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class. Syntax. Following is the syntax to write a nested class.

About

In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class. Syntax. Following is the syntax to write a nested class.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages