#include "rectangle.h" // the implementation of class Rectangle // constructor length and width of the rectangle object Rectangle::Rectangle (float l, float w): length(l), width(w) {} // return the length of the rectangle float Rectangle::GetLength (void) const { return length; } // allow client to assign new value l to length of rectangle void Rectangle::PutLength (float l) { length = l; } // return the width of the rectangle float Rectangle::GetWidth (void) const { return width; } // allow client to assign new value to width of rectangle void Rectangle::PutWidth (float w) { width = w; } // compute and return the perimeter of the rectangle float Rectangle::Perimeter (void) const { return 2.0 * (length + width); } // compute and return the area of the rectangle float Rectangle::Area (void) const { return length * width; }