KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ChangedPackage > ChangedClassInherit


1 package ChangedPackage;
2
3 import java.util.*;
4
5 /**
6  * NEW: The changes in this class are to do with inheritance.
7  */

8 public class ChangedClassInherit extends Hashtable {
9
10     /** This constructor should remain unchanged. */
11     public ChangedClassInherit() {
12     }
13
14 }
15
16 /**
17  * NEW: The changes in this class are to do with inheritance.
18  */

19 class ChangedClassInherit1 {
20
21     /** This constructor should remain unchanged. */
22     public ChangedClassInherit1() {
23     }
24
25 }
26
27 /**
28  * NEW: The changes in this class are to do with interfaces.
29  */

30 class ChangedClassImplements implements Comparable JavaDoc {
31
32     /** This constructor should remain unchanged. */
33     ChangedClassImplements() {
34     }
35
36     /** NEW: Method to compare two ChangedClassImplements objects. */
37     public int compareTo(Object JavaDoc o) {
38         return -1;
39     }
40 }
41
42 /**
43  * NEW: The changes in this class are to do with interfaces.
44  */

45 class ChangedClassImplements2 {
46
47     /** This constructor should remain unchanged. */
48     ChangedClassImplements2() {
49     }
50
51 }
52
Popular Tags