KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > testpackage > TestClass


1 package testpackage;
2
3 public class TestClass implements TargetInterface {
4     public Object JavaDoc testAttribute;
5
6     public TestClass sourceAttribute;
7     public TestClass targetAttribute;
8     
9     public TestClass sourceMethod() {
10         testMethod("foobar");
11         return this;
12     }
13
14     public void targetMethod() {
15     }
16     
17     public void testMethod(String JavaDoc text) {
18         targetAttribute = this;
19         targetMethod();
20
21         TargetClass target = new TargetClass();
22         target.targetMethod();
23         target.targetAttribute = new Object JavaDoc();
24     }
25 }
26
Popular Tags