Skip to content

Commit beb4b58

Browse files
Create A.java
1 parent ca8564c commit beb4b58

File tree

1 file changed

+12
-0
lines changed
  • ProtectedAccessModifiers

1 file changed

+12
-0
lines changed

ProtectedAccessModifiers/A.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package p2;
2+
/*
3+
Author:Akash Tiwari
4+
*/
5+
6+
public class A
7+
{
8+
B b=new B();
9+
public void m1() {
10+
System.out.println(b.x); //It will not show any C.F
11+
}
12+
}

0 commit comments

Comments
 (0)