Constant
Readonly
Value is evaluated at compile time
Value is evaluated at runtime
Can be declared as class member or inside a method
Is not allowed inside a method
Is always static
Can be static or instanceable
Constant field can’t be used with static modifier
Readonly field can be used with static modifier
Can only be initialized at declaration
Can be initialized at declaration or in the constructor
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: