Source of Parent.java


  1: /**
  2:  * A very simple base class for our inheritance demo.
  3:  *
  4:  * @author Mark Young (A00000000)
  5:  */
  6: public class Parent {
  7:     private String value;

  9:     /**
 10:      * Change the value of this Parent.
 11:      *
 12:      * @param newValue the new value
 13:      */
 14:     public void setValue(String newValue) {
 15:         this.value = newValue;
 16:     }

 18:     /**
 19:      * Return this Parent's value
 20:      *
 21:      * @return this Parent's value
 22:      */
 23:     public String getValue() {
 24:         return this.value;
 25:     }

 27: }