When a variable or constant is required by multiple methods in a GUI program, where should it be defined?

A. Inside one of the methods used by the GUI.
B. Inside a nested method shared by both methods.
C. Outside of the methods, but inside of the Form class shared by both methods.
D. Inside of an inherited class.

Answer: C

Computer Science & Information Technology

You might also like to view...

Who wrote “An Open Letter to Hobbyists,” complaining about software theft?

a. Stewart Brand b. Bob Frankston c. Bill Gates d. Steve Jobs e. Steve Wozniak

Computer Science & Information Technology

To ensure that the proper controls obtain the focus when Tab is pressed, use the _________.

a) TabIndex property b) TabStop and TabIndex properties c) TabStop property d) Focus property

Computer Science & Information Technology