KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ChangedPackage > ChangedChild


1 package ChangedPackage;
2
3 /**
4  * NEW: The changes in this class are to do with changes in inherited
5  * methods and fields.
6  */

7 public class ChangedChild extends ChangedParent {
8
9     /** This constructor should remain unchanged. */
10     public ChangedChild() {
11     }
12
13     /** NEW This method moves to its child. */
14     public void MovingMethod2() {
15     }
16
17     /** NEW This is a new method in the child. */
18     public void NewChildMethod() {
19     }
20
21     /** NEW This field moves to its child. */
22     public int MovingField2;
23
24     /** NEW This is a new field in the child. */
25     public char NewChildField;
26 }
27
Popular Tags