We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97dcdeb commit 4f79533Copy full SHA for 4f79533
2 files changed
hiding/CreatePackageAccessObject.java
@@ -0,0 +1,12 @@
1
+// hiding/CreatePackageAccessObject.java
2
+// (c)2017 MindView LLC: see Copyright.txt
3
+// We make no guarantees that this code is fit for any purpose.
4
+// Visit http://OnJava8.com for more book information.
5
+// {WillNotCompile}
6
+import hiding.packageaccess.*;
7
+
8
+public class CreatePackageAccessObject {
9
+ public static void main(String[] args) {
10
+ new PublicConstructor();
11
+ }
12
+}
hiding/packageaccess/PublicConstructor.java
@@ -0,0 +1,9 @@
+// hiding/packageaccess/PublicConstructor.java
+package hiding.packageaccess;
+class PublicConstructor {
+ public PublicConstructor() {}
0 commit comments