Difference between revisions of "Constants - 2017"
(Created page with "<syntaxhighlight lang="csharp"> L419 private const int MaxRabbitsInWarren = 99; L711 private const int DefaultLifespan = 7; L712 private const double DefaultProbabilityDeathO...") |
(No difference)
|
Latest revision as of 15:19, 6 February 2017
L419 private const int MaxRabbitsInWarren = 99;
L711 private const int DefaultLifespan = 7;
L712 private const double DefaultProbabilityDeathOtherCauses = 0.1;
L769 const double ReproductionProbability = 0.25;
L802 private const double DefaultReproductionRate = 1.2;
L803 private const int DefaultLifespan = 4;
L804 private const double DefaultProbabilityDeathOtherCauses = 0.05;
- Keyword const declares a variable when the program is compiled.
- This variable is unable to be edited by the program after it has started running.