live user chart 221 users on this page
0 views

Verified Question

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 is "2, 4, 5"

Groww Referal

Earn ₹700 on signup and invest in Google

2 Answer and explanations

You don't need to login to post your comment

302

Please please explain this answer to me

answered via iOS
Abigail
   Abigail
🌐 India
250

I'm in exam, can any one give the solution for this question

answered via iOS
Andrea
   Andrea
🌐 India

Post your answer

You don't need to login to post answer