How is a property designated as read-only?

Answers were Sorted based on User's Feedback



How is a property designated as read-only? ..

Answer / ram

if the property has only get accessor that property is
called read only property.

Is This Answer Correct ?    5 Yes 0 No

How is a property designated as read-only? ..

Answer / sushain sharma

By ommitting set part of property e.g
class A
{
private int n=5;

public int Number
{
get
{
return n;
}


}

}

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Differentiate strong typing and weak typing

0 Answers  


Explain the scenario where we go for inpro and outpro session?

3 Answers  


How to find out what version of asp.net I am using on my machine?

0 Answers  


Can we store object in viewstate?

0 Answers  


Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj

0 Answers   Accenture,






How do you add a javascript function for a link button in a datagrid?

2 Answers   Microsoft,


How can exception be handled with out the use of try catch?

0 Answers  


What is marshalling ? Is it a part of asp.net ?

0 Answers   MCN Solutions,


To display data in a Repeater control which templete is provided ?

4 Answers   Siebel,


What is dynamic web page with example?

0 Answers  


What is the advantage of using Windows authentication in a Web application?

0 Answers   MCN Solutions,


What is viewstate information stored?

0 Answers  


Categories