Card 35 / 76: Class variables, also known as static fields, have only one instance in existence. Following standing naming conventions, which answer represents a class variable?
A)
variableName
B)
VariableName
C)
ClassName:variableName
D)
ClassName.variableName
Answer:
D) ClassName.variableName
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
A, B, and C are incorrect.
A and B are incorrect because variables are not qualified by a class name.
C is incorrect because when referencing static variables, colons are not used for delineation.
|