class Point
{
private:
int x, y;
public:
Point(int X, int Y)
{
x = X;
y = Y;
}
};
class Square
{
private:
Point vertexes[4];
public:
Square(Point a, Point b, Point c, Point d)
//ERROR:
//no matching function for call to ‘Point::Point()'
{
vertexes[0] = a;
vertexes[1] = b;
vertexes[2] = c;
vertexes[3] = d;
}
};
int main()
{
Point z(0, 0);
Point y(0, 30);
Point x(30, 0);
Point w(30, 30);
Square(z, y, x, w);
return 0;
}