/* Rectangle.h Class definition for rectangles */ /**** Name of the class ****/ typedef struct rectangle *Rectangle; /**** Methods for operating on the class ****/ /* Constructor */ Rectangle ConsRectangle( double height, double width ); /* Destructor */ void DestroyRectangle( Rectangle r ); /* Obtain the current height */ double Height( Rectangle r ); /* Change the height */ void SetHeight( Rectangle r, double height ); /* Obtain the current width */ double Width( Rectangle r ); /* Change the width */ void SetWidth( Rectangle r, double width ); /* Properties of rectangles */ double Perimeter( Rectangle r ); double Area( Rectangle r );