+ 1
Const Readonly
What is the difference between Const and Readonly?
1 Antwort
+ 3
const is constant already at compilation, the value must be set at declaration
readonly is constant during runtime – it may be set in the constructor of the object
What is the difference between Const and Readonly?