Given the following class definition: class Rectangle{  priv…

Given the following class definition: class Rectangle{  private:    int width;    int height;  public:    void setWidth(const int w);    void setHeight(const int h);    int getWidth() const;    int getHeight() const;}; Write the complete definition of the member function getHeight that includes the function header and code to implement the function.

Given the following class definition: class Rectangle{  priv…

Given the following class definition: class Rectangle{  private:    double width;    double height;  public:    void setWidth(const double w);    void setHeight(const double h);    double getWidth() const;    double getHeight() const;}; Write the complete definition of the member function setWidth that includes the function header and code to implement the function.