Assume the existence of a Window class with methods getWidth and getHeight, and a subclass TitledWindow, with a constructor accepts a string corresponding to the title of the window.

Assume the existence of a Window class  with methods getWidth and getHeight, and a subclass TitledWindow, with a constructor accepts a string corresponding to the title of the window.

LANGUAGE: Java

CHALLENGE:

Assume the existence of a Window class with methods getWidth and getHeight, and a subclass TitledWindow, with a constructor accepts a string corresponding to the title of the window.

Declare a variable , tWindow, of type TitledWindow variable , and initialize it to a TitledWindow object with a title of “My Title”. Print out the width and height of the window (in that order) separated by a space.window (in that order) separated by a space.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level