/**
 A house has a defined number of bedrooms and bathrooms, 
 a house Id that counts up depending on the number of house 
 objects and may or may not have a garage.*/
public class House 
{
    private int bedroomNumber;
    private int bathroomNumber;
    private boolean garage;
    private static int houseId = 1000;
    
/**
 * Constructs a house with a houseId of 1001.
 */
    public House()
    {
        houseId++;
    }

/**
 * Sets the number of bedrooms.
 * @param bed the number of bedrooms.
 */
    public void setBedroomNumber(int bed)
    {
        bedroomNumber = bed;
    }

/**
 * Sets the number of bathrooms.
 * @param bath the number of bathrooms.
 */
    public void setBathroomNumber(int bath)
    {
        bathroomNumber = bath;        
    }

/**
 * Sets the garage instance variable to true or false.
 * @param g the house has a garage (either true or false) .
 */ 
    public void setGarage(boolean g)
    {
        garage = g;  
    }

/**
 * Gets the number of bedrooms.
 * @param bedroomNumber the number of bedrooms.
 */
    public int getBedroomNumber()
    {
        return bedroomNumber;
    }

/**
 * Gets the number of bathrooms.
 * @param bathroomNumber the number of bathrooms.
 */
    public int getBathroomNumber()
    {
        return bathroomNumber;        
    }


/**
 * Gets the value of garage(either true or false).
 * @param garage value of garage(either true or false).
 */
    public boolean getGarage()
    {
        return garage;        
    }

/**
 * Gets the house Id Number.
 * @param houseId the ID number of the house object.
 */
    public static int getHouseId()
    {
        return houseId;        
    }
    
}
