class Rectangle { public: // constructor Rectangle(float l = 0, float w = 0); // methods for retrieving and modifying private data float GetLength(void) const; void PutLength(float l); float GetWidth(void) const; void PutWidth (float w); // compute and return rectangle measurements float Perimeter(void) const; float Area(void) const; private: // length and width of the rectangle object float length, width; };