Jun 25, 2019 in Dot Net
Q:

 What is difference between constants and read-only?

1 Answer

0 votes
Jun 25, 2019

Constant variables are declared and initialized at compile time. The value can't be changed afterwards. Read only is used only when we want to assign the value at run time.

Related questions

+1 vote
Jun 25, 2019 in Dot Net
+1 vote
Jun 25, 2019 in Dot Net
...