Skip to content

Commit d27efc8

Browse files
added comment
1 parent 7b7e34a commit d27efc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inner_class/static_inner_class/src/Outer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ public class Outer {
22
static int x = 10;
33
int y = 20;
44

5+
// You cannot use the static keyword with a class unless it is an inner class
56
static class Inner {
67
void display(){
78
System.out.println("From Outer class, x is: " + x);

0 commit comments

Comments
 (0)