Question: If Sample class has a Length property with get and set accessors then which of the following statements will work correctly? 1 Sample.Length = 2
If Sample class has a Length property with get and set accessors then which of the following statements will work correctly?
Sample.Length ;
Sample a new Sample;
Length ;
Console. MriteLineSample Length;
Sample a new SampleD;
int len;
len Length;
Sarole a new Sample;
Length mLength ;
O a
O b
O c only
O d
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
