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

What are delegates?

1176


Why do we write system in c#?

872


Define constructor in c#.

850


What will a loop recorder show?

901


Can hashtable have duplicate keys in c#?

826


What is 8 bit signed integer?

862


What is ienumerator c#?

814


What is an array class?

1023


What is the use of delegate?

916


Can an abstract class inherit from another abstract class c#?

904


What is a console operator?

841


What is a protected class in c#?

890


Can you specify nested classes as partial classes?

912


how encapsulation is implemented in c#

1036


What is the correct way of declaring an xml namespace?

781