Home > DeveloperSection > Interviews > What is the difference between CONST and READONLY?

Posted on    November-13-2013 11:14 PM

 C# C# 
 1 Answer(s)
  1162  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    November-13-2013 1:00 AM

Both are meant for constant values. A const field can only be initialized at the declaration of the field. A readonly field can be initialized either at the declaration or.

Don't want to miss updates? Please click the below button!

Follow MindStick