Discussion :: Properties
-
If Sample class has a Length property with get and set accessors then which of the following statements will work correctly?
-
Sample.Length = 20;
-
Sample m = new Sample(); m.Length = 10;
-
Console.WriteLine(Sample.Length);
-
Sample m = new Sample(); int len; len = m.Length;
-
Sample m = new Sample(); m.Length = m.Length + 20;
-
Answer : Option B
Explanation :
No answer description available for this question.
Be The First To Comment