added "Package Access vs. Public Constructors" section
This commit is contained in:
parent
97dcdebc0c
commit
4f795333a6
12
hiding/CreatePackageAccessObject.java
Normal file
12
hiding/CreatePackageAccessObject.java
Normal file
@ -0,0 +1,12 @@
|
||||
// hiding/CreatePackageAccessObject.java
|
||||
// (c)2017 MindView LLC: see Copyright.txt
|
||||
// We make no guarantees that this code is fit for any purpose.
|
||||
// Visit http://OnJava8.com for more book information.
|
||||
// {WillNotCompile}
|
||||
import hiding.packageaccess.*;
|
||||
|
||||
public class CreatePackageAccessObject {
|
||||
public static void main(String[] args) {
|
||||
new PublicConstructor();
|
||||
}
|
||||
}
|
9
hiding/packageaccess/PublicConstructor.java
Normal file
9
hiding/packageaccess/PublicConstructor.java
Normal file
@ -0,0 +1,9 @@
|
||||
// hiding/packageaccess/PublicConstructor.java
|
||||
// (c)2017 MindView LLC: see Copyright.txt
|
||||
// We make no guarantees that this code is fit for any purpose.
|
||||
// Visit http://OnJava8.com for more book information.
|
||||
package hiding.packageaccess;
|
||||
|
||||
class PublicConstructor {
|
||||
public PublicConstructor() {}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user