CSC 216 F09/Sorting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
Describe how to do your exercise. | Describe how to do your exercise. | ||
<source lang="Java"> | |||
public class Student { | |||
private Point location; | |||
private int age; | |||
public Student clone() { | |||
Student newStudent = new Student(); | |||
newStudent.location = this.location; | |||
newStudent.age = this.age; | |||
} | |||
} | |||
</source> |
Revision as of 14:35, 12 November 2009
Formatting Resources
Formatting Help Guide from MetaWiki
Place Title of Exercise Here
Give the title of your exercise, which may include the name of the topic you are covering, or some other catchy title.
The problem
Describe what you are attempting to teach students by this exercise.
Participants and props
How many students will participate? What else do you need (e.g., old tennis ball, Powerpoint slides, software).
The script
Describe how to do your exercise.
public class Student {
private Point location;
private int age;
public Student clone() {
Student newStudent = new Student();
newStudent.location = this.location;
newStudent.age = this.age;
}
}