Constants - 2017

From TRCCompSci - AQA Computer Science
Revision as of 15:19, 6 February 2017 by Alex1 (talk | contribs) (Created page with "<syntaxhighlight lang="csharp"> L419 private const int MaxRabbitsInWarren = 99; L711 private const int DefaultLifespan = 7; L712 private const double DefaultProbabilityDeathO...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 
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.