
/**
 * This represents a single pet.
 * Pets have a type and a weight
 */
public class Pet
{
    private String type;
    private int weight;
    /**
     * Constructor for objects of class Pet
     * A pet must have a type (eg dog, cat) and 
     */
    public Pet(String type, int weight)
    {
        this.type = type;
        this.weight = weight;
    }

    /**
     * Return the number of legs for this pet
     *
     */
    public int getWeight(){
        return this.weight;
    }
    
    
    /**
     * Return the type of pet
     *
     */
    public String getType(){
        return this.type;
    }
}
