Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Properties
If Sample class has a Length property with set accessor then which of the following statements will work correctly?
Sample m = new Sample(); int l; l = m.Length;
Sample m = new Sample(); m.Length = m.Length + 20;
Sample.Length = 20;
Console.WriteLine (Sample.Length);
Sample m = new Sample(); m.Length = 10;
Show Answer
Correct Answer:
Sample m = new Sample(); m.Length = 10;
← Previous Question
Next Question→
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment