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 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);
Show Answer
Correct Answer:
Sample m = new Sample(); int l; l = m.Length;
← Previous Question
Next Question→
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment