16 lines
491 B
Java
16 lines
491 B
Java
// hiding/OrganizedByAccess.java
|
|
// (c)2016 MindView LLC: see Copyright.txt
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
// Visit http://mindviewinc.com/Books/OnJava/ 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;
|
|
// ...
|
|
}
|