Here is the problem:
Given a class Window, with integer data members width, height, xPos, and yPos, write the following two constructors: - a constructor accepting 4 integer arguments: width, height, horizontal position, and vertical position (in that order), that are used to initialize the corresponding members. - a constructor accepting 2 integer arguments: width and height (in that order), that are used to initialize the corresponding members. The xPos and yPos members should be initialized to 0.
I get an error stating my yPos is incorrect
I have tried and this is all I could get
Window(int w, int h, int x, int y)
{
width =w;
height = h;
xPos = x;
yPos = y;
}
Window(int w, int h)
{
width = w;
height = h;
}