Set modifier is present write - only property can be specified - Csharp.Net

Q.  A write - only property can be specified if the following is present.
- Published on 31 Aug 15

a. The set modifier only
b. The get modifier only
c. Both the modifiers
d. None of the modifiers

ANSWER: The set modifier only
 
A property is called as write-only property if it has set modifier only. Properties can be think as an extension of fields. A property is one or two code blocks, representing a get accessor or a set accessor or both.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)