Question 5-1

Select which of the following best describes the purpose of each of the circled pieces of the code. (Note that some choices may not appear at all, and others may occur multiple times.)

A. local variable declaration
B. class variable declaration
C. instance variable declaration
D. constructor method definition
E. class method definition
F. instance method definition

Solution

a. C. instance variable
b. C. instance variable
c. D. constructor method
d. F. instance method
e. A. local variable
f. F. instance method

Back to 8:00 Quiz 5