#ifndef _RECT
#define _RECT
#include "Point.h"
using namespace std;
class Rectangle
{
private:
Point _topLeft;
Point _bottomRight;
int _color;
public:
Rectangle( double left, double top, double width, double height, int color );
~Rectangle() { --m_count; };
public:
int getColor() const;
Point& getTopLeftPoint();
Point& getBottomRightPoint();
void setColor( int color );
public:
bool contains( const Point &p );
void moveRect( double deltaLeft, double deltaTop );
void scaleRect( double rectWidth, double rectHeight );
void setBigger(int x, int y) const;
public:
static int m_count;
};
#endif
I didn't understand the meaning of the signatures:
Point& getTopLeftPoint();
Point& getBottomRightPoint();
Where do they belong,Is it another class constructor or is it another way to call the variables, I've been trying to figure out for hours
Thanks for the help