/**
 * Class describing a person
 *
 * @author TK Rogers
 * @version 02-17-09
 */
public class Person{
    // Fields
    private double  weight,
                            height;
 
    // Constructors               
    public Person ( ) {  // This constructor must be included
    }                            // since the Person class has a subclass.
 
    public Person (double wt, double ht) {
        weight = wt;
    }

 

    // Method.
    public double getWeight ( ) {
          //  ^ the key word double is required here because
                    //    the method returns a double
        return weight;  // Note that the field weight is a double
    }
}