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...

You can use the procedures in a database’s standard modules from anywhere in the database. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Windows includes built-in device ____________________ for many peripheral devices.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A ____ is a computer's machine name in the network.

A. domain name B. hostname C. network name D. device name

Computer Science & Information Technology

When working with frames, it is useful to refer to a group of frames as a frame ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology