View the exhibit: What is the result?
A.
year is set to 1982.
B.
A compile time error is generated.
C.
A runtime error is generated.
D.
bob.year is set to 1982
View the exhibit: What is the result?
A.
year is set to 1982.
B.
A compile time error is generated.
C.
A runtime error is generated.
D.
bob.year is set to 1982
B
Answer: B
Explanation:
A compile time error will happen because a year property has not been defined as part of the Student class.