Solved

When a Variable or Constant Is Required by Multiple Methods

Question 2

Multiple Choice

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.

Correct Answer:

verifed

Verified

Related Questions