Add a string instance variable, messageUponExiting (a string), to the Window class.

LANGUAGE: Java

CHALLENGE:

Add a string instance variable, messageUponExiting (a string), to the Window class. This variable will be used to display a message when the user closes the window (for example “are you sure you want to quit”). Furthermore, this variable should be accessible to all subclasses of the Window class (as each sort of window may require a different message upon exiting).
Please provide the declaration of the instance variable only– nothing else.

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

Leave a Comment

You must be logged in to post a comment.