Microsoft
98-361 · Question #183
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
- ASet
- BGet
- CLet
- DReturn
How the community answered
(28 responses)- A4% (1)
- B82% (23)
- C4% (1)
- D11% (3)
Community Discussion
No community discussion yet for this question.