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 - Fork 0
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.
codermahadi/InnerClassDemo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published