/** * This is a class that defines an Ice Skater * * @author Hunter lloyd * @version 9/12/07 */ public class IceSkater { private int weight = 0; private String name; public IceSkater (int w, String n) { weight = w; name = n; } public void changeWeight(int num) { weight = weight + num; System.out.println("We've changed the weight"); } public int returnWeight() { return weight; } public void print() { System.out.println("My name is " + name + " and I weigh " + weight); } }