Assume a class Window with a constructor that accepts two integer arguments : width and height (in that order). Declare an array named winarr, consisting of 3 Window objects, where the first element is an 80×20 window, the second a 10×10 window, and the third a 133×40 window.
LANGUAGE: C++
CHALLENGE:
Assume a class Window with a constructor that accepts two integer arguments : width and height (in that order). Declare an array named winarr, consisting of 3 Window objects, where the first element is an 80×20 window, the second a 10×10 window, and the third a 133×40 window.
SOLUTION:
Window winarr[3] = {Window(80,20),Window(10,10),Window(133,40)};