16 lines
473 B
Java
16 lines
473 B
Java
// hiding/OrganizedByAccess.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.
|
|
|
|
public class OrganizedByAccess {
|
|
public void pub1() { /* ... */ }
|
|
public void pub2() { /* ... */ }
|
|
public void pub3() { /* ... */ }
|
|
private void priv1() { /* ... */ }
|
|
private void priv2() { /* ... */ }
|
|
private void priv3() { /* ... */ }
|
|
private int i;
|
|
// ...
|
|
}
|