Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is read only and constant

Answer Posted / nithya

A readonly can be initialized only the time of variable
declaration or only in the constrator,Apart from that we
cannt modify anywhere in our program.

But Constant must be initialized at the time of declaration.
And this value cannt be changed in constractor level also.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which class does the remote object has to inherit?

1062


What is static void main in c#?

1008


what is IDisposal interface,IComparable,IEquatable,IFormatable

1018


What is the property of class?

1070


Can you use foreach iteration on arrays in c#?

1074


What is class in oops with example in c#?

922


What are circular references? How garbage collection deals with circular references.

918


From which base class do all Web Forms inherit from?

988


What is difference between dynamic and var in c#?

942


What is overloading with example?

919


What is use of a HashTable in .NET?

1156


What is the difference between int16 and int32 in c#?

935


Give examples for value types?

950


Is array thread safe c#?

866


Is as operator in c#?

880