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 the difference between readonly and const

Answer Posted / chandan kumar

The read only keyword is different from the const keyword. A
const field can only be initialized at the declaration of
the field. A read only field can be initialized either at
the declaration or in a constructor. Therefore, read only
fields can have different values depending on the
constructor used. Also, while a const field is a
compile-time constant, the read only field can be used for
runtime constants as in the

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between convert and parse in c#?

870


What are the types of constructors?

857


What is a class in unity?

839


Is c sharp free?

873


What do you mean by default constructor?

1031


Why do we use ienumerable in c#?

819


What do u mean by delegation of authority?

887


What is the difference between dataset and datatable in c#?

953


Explain the difference between object type and dynamic type variables in c#?

878


What is the difference between add and addrange in c#?

947


How many bytes is a long c#?

867


What is polymorphism c# example?

869


What is the difference between abstract and abstraction?

803


What are desktop applications examples?

893


What are partial classes and use of partial classes?

887