If Sample class has a Length property with get accessor then which of the following statements will work correctly?

Question:If Sample class has a Length property with get accessor then which of the following statements will work correctly?

1.Sample m = new Sample();

2.Sample m = new Sample(); m.Length = m.Length + 20;

3.Sample m = new Sample(); int l; l = m.Length;

4.Sample.Length = 20;


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!