Microsoft
98-361 · Question #56
You need to create a property in a class. Consumers of the class must be able to read the values of the property. Consumers of the class must be prevented from writing values to the property. Which…
The correct answer is B. Get. See the full explanation below for the reasoning.
Question
You need to create a property in a class. Consumers of the class must be able to read the values of the property. Consumers of the class must be prevented from writing values to the property. Which property procedure should you include?
Options
- AReturn
- BGet
- CSet
- DLet
How the community answered
(25 responses)- A4% (1)
- B84% (21)
- C8% (2)
- D4% (1)
Community Discussion
No community discussion yet for this question.