What is the difference b/w constant & read only variable?

Answer Posted / test

Constant: The value of a constant variable is set at
compile time and can't be reset again.

Readonly: Can be set in a constructor or can be reset again.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is datacontrols?

3097


What is a model in programming?

553


What is the difference between model view and controller?

483


Explain .Net Framework? Why we use it?

611


what is use of entity container?

606






How does the .net framework 3.0 relate to windows vista?

565


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

538


What are action filters?

602


What is MVVM design pattern?

603


What is the difference between windows vista and .net framework 3.0 ?

543


How to change the action name in mvc?

546


How do you specify comments using razor syntax?

600


What is the .net framework and how does it work?

559


what is eager loading?

571


Explain covariance and contra-variance in .net framework 4.0. Give an example for each.

577