I got the following code from code review which has been confusing me for a while.
class Window { public: Window(int x, int y, int w, int h, bool fullScre