@@ -0,0 +1,279 @@
+//Protected member can be accessed within same package %0A// no need for inheriting class%0Aclass ProtectedMember%7B%0A%09protected int x = 12;%0A%7D%0A%0A%0Aclass ProtectedDemo%7B%0A%09public static void main(String%5B%5D args)%7B%0A%09%09ProtectedMember pt = new ProtectedMember();%0A%09%09System.out.println(pt.x);%0A%09%7D%0A%7D%0A

Create ProtectedMember.java