C# Programming - Properties - Discussion

Discussion Forum : Properties - General Questions (Q.No. 11)
If Sample class has a Length property with get accessor then which of the following statements will work correctly?
Sample m = new Sample(); 
m.Length = 10;
Sample m = new Sample(); 
m.Length = m.Length + 20;
Sample m = new Sample(); 
int l;
l = m.Length;
Sample.Length = 20;
Answer: Option
No answer description is available. Let's discuss.
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.