/*
 * File: IntRectangle.java
 * CIS73 - Bristol Community College
 * Description: This class describes a rectangle object.
 *  This class is not executable because it does not have a
 *  main() method.
 */

public class IntRectangle
{
    protected int length;     // Instance variables
    protected int width;

    //*******************************************************************
    public IntRectangle(int l, int w)  // Constructor method
    {
        length = l;
        width = w;
    } // end Rectangle constructor

    //*******************************************************************
    public int getLength()             // getter  
    {
        return length;

    } // end getLength

    //*******************************************************************    	             
    public int getWidth()             // getter  
    {
        return width;
    } // end getWidth

    //*******************************************************************
    public void setLength(int l)      // setter  
    {
        length = l;

    } // end setLength

    //*******************************************************************    	             
    public void setWidth(int w)     // setter  
    {
        width = w;

    } // end setWidth

    //*******************************************************************    
    public int calculateArea()         // calculation method
    {
        return length * width;
    } // end calculateArea

    //*******************************************************************
    public void displayRectangle()         // display method
    {
        System.out.println("Rectangle Length = " + length);

        System.out.println("Rectangle Width = " + width);
    } // end displayRectangle

    //********************************************************************    

} // Rectangle Class


