public class Parent2
1: /*
2: * A Parent class with constructor
3: *
4: * @author Mark Young (A00000000)
5: */
6: public class Parent2 {
7: private String value;
9: /**
10: * Create this Parent with the given value
11: *
12: * @param reqValue the requested value
13: */
14: public Parent2(String reqValue) {
15: this.value = v;
16: }
18: /**
19: * Change the value of this Parent.
20: *
21: * @param newValue the new value
22: */
23: public void setValue(String newValue) {
24: this.value = newValue;
25: }
27: /**
28: * Return this Parent's value
29: *
30: * @return this Parent's value
31: */
32: public String getValue() {
33: return this.value;
34: }
36: }