C# Fundamentals: Variables! — The building blocks of programming
<p>Today we take a look at variables which can be thought of as containers that store data or information. This information can change or ‘vary’ and it’s incredibly useful to avoid using the same hardcoded value over and over again.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:770/1*zCBCoHM1Hr7m4estHEFMdg.jpeg" style="height:291px; width:700px" /></p>
<p>Let’s say we have a speed value of 10 in our game and suddently we decide that a speed of 10 may be a bit too much. Would it make sense to go back and change every single hardcoded instance of the speed value in our code? No! That’s where variables come into play.</p>
<p>To create a variable we start off with an access modifier. The two most common are public and private.</p>
<p><a href="https://medium.com/@juwanbarnes/c-fundamentals-variables-the-building-blocks-of-programming-dd3c0c66e922"><strong>Website</strong></a></p>