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

If Sample class has a Length property with get and set accessors then which of the following statements will work correctly?
1.
Sample. Length =20;
2.
Sample m= new SampleO;
m. Length =10;
3.
Console. WriteL ine(Sample. Length);
4.
Sample m= new SampleO;
int len;
len =m. Length;
5.
Sample m= new SampleO;
m* Length =m* Length +20 ;
a.1,3
b.2,4,5
c.4 only
d.3,5
 If Sample class has a Length property with get and set

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To determine which statements will work correctly lets analyze each one based on the context where a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!