//=================================================================================================
public class HouseOccupant {
//-------------------------------------------------------------------------------------------------
    protected String name;
    protected int age;
    protected int legs;
//-------------------------------------------------------------------------------------------------
    public HouseOccupant() {

        name = "";
        age = 0;
        legs = 0;
    }
//-------------------------------------------------------------------------------------------------
    public HouseOccupant(String name,int age,int legs) {

        this.name = name;
        this.age = age;
        this.legs = legs;
    }
//-------------------------------------------------------------------------------------------------
    public String toString() {

        return(name + " (" + age + " years)");
    }
//-------------------------------------------------------------------------------------------------
    public void incrementAge() {

        age++;
    }
//-------------------------------------------------------------------------------------------------
}
//=================================================================================================
