1: // Version 4.0 2: // Add to the class ImmutableName: 3: public ImmutableName(Name aName) 4: { 5: first = aName.getFirst(); 6: last = aName.getLast(); 7: } // end constructor 8: 9: public Name getMutable() 10: { 11: return new Name(first, last); 12: } // end getMutable 13: // Add to the class Name 14: public Name(ImmutableName aName) 15: { 16: first = aName.getFirst(); 17: last = aName.getLast(); 18: } // end constructor 19: 20: public ImmutableName getImmutable() 21: { 22: return new ImmutableName(first, last); 23: } // end getMutable