C# Programming - Properties - Discussion

Discussion Forum : Properties - General Questions (Q.No. 11)
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;
Console.WriteLine(Sample.Length);
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.