KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > PrivateClass


1 /* PrivateClass.java */
2
3 /** Test Quilt's ability to change private access to public. */
4
5 class PrivateClass implements org.quilt.cl.RunTest {
6     
7     public PrivateClass() { }
8
9     public int doSomething() {
10         return 2;
11     }
12
13     public int runTest(int x) {
14         int z = doSomething();
15         return z * z;
16     }
17 }
18
Popular Tags