Source of ComparableCopyableName.java


  1: /**
  2:    A mutable class that represents a person's name 
  3:    that can be compared and cloned.
  4:    
  5:    @author Frank M. Carrano
  6:    @author Timothy M. Henry
  7:    @version 5.0
  8: */
  9: public class ComparableCopyableName
 10:              implements ComparableAndCopyable<ComparableCopyableName>
 11: {
 12: // . . .
 13:    
 14:         public Object clone()
 15:    {
 16:       // This method is similar to the one in Segment J9.3
 17:    } // end clone
 18: } // end ComparableCopyableName

 20: // Exercise: How can you involve NameInterface in the definition of this class?