Showing posts with label 11198. Show all posts
Showing posts with label 11198. Show all posts

13.3: Defining an Instance of a Class in C++: 11198

Question

Objects of the Window class require a width (integer) and a height (integer) be specified (in that order) upon definition. Define an object named window, of type Window, corresponding to a 80 x 20 window.

Solution
Window window (80,20);