public class CollegeStudent extends Student
1: /**
2: A class that represents a college student.
3:
4: @author Frank M. Carrano
5: @author Timothy M. Henry
6: @version 4.0
7: */
8: public class CollegeStudent extends Student
9: {
10: private int year; // Year of graduation
11: private String degree; // Degree sought
12:
13: /* < Constructors and the methods setStudent, setYear, getYear,
14: setDegree, getDegree, toString, and clone go here. >
15: . . . */
16:
17: public Object clone()
18: {
19: CollegeStudent theCopy = (CollegeStudent)super.clone();
20:
21: return theCopy;
22: } // end clone
23: } // end CollegeStudent